is-element

0.1.0 • Public • Published

is-element

Returns true if dom element, false if not

Getting Started

npm install is-element

is-element is meant to be consumed in a CommonJS, Browserify environment:

var isElement = require('is-element')

// returns true, assuming a node with class `element` exists
isElement(document.querySelector('.element'))

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    405
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    405
  • 0.0.1
    1

Package Sidebar

Install

npm i is-element

Weekly Downloads

282

Version

0.1.0

License

WTFPL

Last publish

Collaborators

  • amongiants