Skip to content

Commit d693391

Browse files
mhbsealtimmywil
authored andcommitted
Core: remove isArraylike check for nodes
Fixes gh-2238 Close gh-2243
1 parent a16b77f commit d693391

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/core.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,10 +496,6 @@ function isArraylike( obj ) {
496496
return false;
497497
}
498498

499-
if ( obj.nodeType === 1 && length ) {
500-
return true;
501-
}
502-
503499
return type === "array" || length === 0 ||
504500
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
505501
}

0 commit comments

Comments
 (0)