We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents af1b634 + 26179d2 commit 554b677Copy full SHA for 554b677
src/vendor/core/dom/isNode.js
@@ -23,7 +23,7 @@
23
*/
24
function isNode(object) {
25
return !!(object && (
26
- typeof Node !== 'undefined' ? object instanceof Node :
+ typeof Node === 'function' ? object instanceof Node :
27
typeof object === 'object' &&
28
typeof object.nodeType === 'number' &&
29
typeof object.nodeName === 'string'
0 commit comments