MCPcopy
hub / github.com/geekape/geek-navigation / isArrayLike

Function isArrayLike

js/jquery.js:522–537  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

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

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected