/**
* Check if an object is a DOM element. Duck-typing based on `nodeType`.
*/export default function isDOMElement(obj: unknown): obj is Element {
if (typeof obj !== 'object' || obj === null) returnfalseif (!('nodeType'in obj)) returnfalsereturn obj.nodeType === Node.ELEMENT_NODE
}