function isDomElement(el, type){ return typeof type === "number" ? el.nodeType === type : typeof el.nodeType === "number"; }