MCPcopy Index your code
hub / github.com/JsAaron/jQuery / isArraylike

Function isArraylike

2.0.3/2.0.3.js:852–867  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

850 });
851
852 function isArraylike( obj ) {
853 var length = obj.length,
854 type = jQuery.type( obj );
855
856 if ( jQuery.isWindow( obj ) ) {
857 return false;
858 }
859
860 if ( obj.nodeType === 1 && length ) {
861 return true;
862 }
863
864 return type === "array" || type !== "function" &&
865 ( length === 0 ||
866 typeof length === "number" && length > 0 && ( length - 1 ) in obj );
867 }
868
869// All jQuery objects should point back to these
870 rootjQuery = jQuery(document);

Callers 1

2.0.3.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected