Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@di3
Created May 17, 2019 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save di3/e27aea6fbe32f710dd47cd0fee2a423c to your computer and use it in GitHub Desktop.
Save di3/e27aea6fbe32f710dd47cd0fee2a423c to your computer and use it in GitHub Desktop.
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