You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
249 B
12 lines
249 B
"use strict";
|
|
|
|
function isDOMElement(obj) {
|
|
return (obj == null ? void 0 : obj.nodeType) === Node.ELEMENT_NODE;
|
|
}
|
|
|
|
/**
|
|
* Check if an object is a DOM element. Duck-typing based on `nodeType`.
|
|
*
|
|
* @param {*} obj
|
|
*/
|
|
module.exports = isDOMElement;
|