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