MCPcopy Create free account
hub / github.com/OpenIntroStat/ims / isArrayLike

Function isArrayLike

libs/jquery-3.5.1/jquery-3.5.1.js:503–518  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

501} );
502
503function isArrayLike( obj ) {
504
505 // Support: real iOS 8.2 only (not reproducible in simulator)
506 // `in` check used to prevent JIT error (gh-2145)
507 // hasOwn isn't used here due to false negatives
508 // regarding Nodelist length in IE
509 var length = !!obj && "length" in obj && obj.length,
510 type = toType( obj );
511
512 if ( isFunction( obj ) || isWindow( obj ) ) {
513 return false;
514 }
515
516 return type === "array" || length === 0 ||
517 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
518}
519var Sizzle =
520/*!
521 * Sizzle CSS Selector Engine v2.3.5

Callers 1

jquery-3.5.1.jsFile · 0.70

Calls 3

toTypeFunction · 0.85
isFunctionFunction · 0.85
isWindowFunction · 0.85

Tested by

no test coverage detected