MCPcopy Index your code
hub / github.com/jquery/jquery / isArrayLike

Function isArrayLike

test/data/jquery-3.7.1.js:546–561  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

544 } );
545
546function isArrayLike( obj ) {
547
548 // Support: real iOS 8.2 only (not reproducible in simulator)
549 // `in` check used to prevent JIT error (gh-2145)
550 // hasOwn isn't used here due to false negatives
551 // regarding Nodelist length in IE
552 var length = !!obj && "length" in obj && obj.length,
553 type = toType( obj );
554
555 if ( isFunction( obj ) || isWindow( obj ) ) {
556 return false;
557 }
558
559 return type === "array" || length === 0 ||
560 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
561}
562
563
564function nodeName( elem, name ) {

Callers 1

jquery-3.7.1.jsFile · 0.70

Calls 3

isFunctionFunction · 0.85
toTypeFunction · 0.70
isWindowFunction · 0.70

Tested by

no test coverage detected