Skip to content

Instantly share code, notes, and snippets.

@di3
Created May 17, 2019
Embed
What would you like to do?
export default (o) => {
if (typeof o == 'undefined' || o === null) return false;
return (typeof Node == 'object' ? o instanceof Node : o && typeof o == 'object' && typeof o.nodeType == 'number' && typeof o.nodeName == 'string');
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment