Created
May 17, 2019 13:41
-
-
Save di3/e27aea6fbe32f710dd47cd0fee2a423c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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