is-el
v1.0.0
Published
Utility to determine if passed value is a valid element.
Downloads
13
Readme
is-el
Utility to determine if passed value is a valid element.
Installation
Install via npm.
$ npm i is-el --save
Usage
var isEl = require('is-el');
console.log(isEl(document.documentElement)); // true
console.log(isEl(document)); // false