/**
* Check if an object is a DOM element. Duck-typing based on `nodeType`.
*/exportdefaultfunctionisDOMElement(obj) {
if (typeof obj !== 'object' || obj === null) returnfalse;
if (!('nodeType'in obj)) returnfalse;
return obj.nodeType === Node.ELEMENT_NODE;
}