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

Function isArrayLike

libs/jquery-3.5.1/jquery-2.2.4.js:529–544  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

527} );
528
529function isArrayLike( obj ) {
530
531 // Support: iOS 8.2 (not reproducible in simulator)
532 // `in` check used to prevent JIT error (gh-2145)
533 // hasOwn isn't used here due to false negatives
534 // regarding Nodelist length in IE
535 var length = !!obj && "length" in obj && obj.length,
536 type = jQuery.type( obj );
537
538 if ( type === "function" || jQuery.isWindow( obj ) ) {
539 return false;
540 }
541
542 return type === "array" || length === 0 ||
543 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
544}
545var Sizzle =
546/*!
547 * Sizzle CSS Selector Engine v2.2.1

Callers 1

jquery-2.2.4.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected