MCPcopy Create free account
hub / github.com/JsAaron/jQuery / isArraylike

Function isArraylike

2.1.1/test/jquery-1.11.1.js:570–584  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

568});
569
570function isArraylike( obj ) {
571 var length = obj.length,
572 type = jQuery.type( obj );
573
574 if ( type === "function" || jQuery.isWindow( obj ) ) {
575 return false;
576 }
577
578 if ( obj.nodeType === 1 && length ) {
579 return true;
580 }
581
582 return type === "array" || length === 0 ||
583 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
584}
585var Sizzle =
586/*!
587 * Sizzle CSS Selector Engine v1.10.19

Callers 1

jquery-1.11.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected