An open API service indexing awesome lists of open source software.

https://github.com/jongacnik/is-element

Returns true if dom element
https://github.com/jongacnik/is-element

Last synced: about 1 year ago
JSON representation

Returns true if dom element

Awesome Lists containing this project

README

          

# 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](http://www.commonjs.org/), [Browserify](http://browserify.org/) environment:

var isElement = require('is-element')

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