Files
2025-11-24 23:24:06 +08:00

12 lines
249 B
JavaScript

"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;