function isDomElement(el, type){ return typeof el.nodeType !== "undefined" && el.nodeType === type; }