mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 06:04:57 -05:00
Core: remove isArraylike check for nodes
Fixes gh-2238 Close gh-2243
This commit is contained in:
committed by
Timmy Willison
parent
b92acf7237
commit
436f0aee0a
@@ -444,10 +444,6 @@ function isArraylike( obj ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if ( obj.nodeType === 1 && length ) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return type === "array" || length === 0 ||
|
||||
typeof length === "number" && length > 0 && ( length - 1 ) in obj;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user