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

Function isArraylike

2.1.1/test/jquery-2.1.1.js:533–547  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

531});
532
533function isArraylike( obj ) {
534 var length = obj.length,
535 type = jQuery.type( obj );
536
537 if ( type === "function" || jQuery.isWindow( obj ) ) {
538 return false;
539 }
540
541 if ( obj.nodeType === 1 && length ) {
542 return true;
543 }
544
545 return type === "array" || length === 0 ||
546 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
547}
548var Sizzle =
549/*!
550 * Sizzle CSS Selector Engine v1.10.19

Callers 1

jquery-2.1.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected