Add is.domElement()

This commit is contained in:
Melvin Philips 2017-10-03 13:25:58 -07:00
parent 27d15f40bd
commit b3903e8ec5
4 changed files with 22 additions and 0 deletions

View file

@ -161,4 +161,6 @@ is.inRange = (x, range) => {
throw new TypeError(`Invalid range: ${util.inspect(range)}`);
};
is.domElement = x => is.object(x) && x.nodeType === 1;
module.exports = is;