MCPcopy
hub / github.com/apache/caldera / isArrayLike

Function isArrayLike

static/jquery/jquery.js:563–578  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

561} );
562
563function isArrayLike( obj ) {
564
565 // Support: iOS 8.2 (not reproducible in simulator)
566 // `in` check used to prevent JIT error (gh-2145)
567 // hasOwn isn't used here due to false negatives
568 // regarding Nodelist length in IE
569 var length = !!obj && "length" in obj && obj.length,
570 type = jQuery.type( obj );
571
572 if ( type === "function" || jQuery.isWindow( obj ) ) {
573 return false;
574 }
575
576 return type === "array" || length === 0 ||
577 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
578}
579var Sizzle =
580/*!
581 * Sizzle CSS Selector Engine v2.2.1

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected