MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / isArraylike

Function isArraylike

Three.js/js/jquery-1.9.1.js:951–966  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

949});
950
951function isArraylike( obj ) {
952 var length = obj.length,
953 type = jQuery.type( obj );
954
955 if ( jQuery.isWindow( obj ) ) {
956 return false;
957 }
958
959 if ( obj.nodeType === 1 && length ) {
960 return true;
961 }
962
963 return type === "array" || type !== "function" &&
964 ( length === 0 ||
965 typeof length === "number" && length > 0 && ( length - 1 ) in obj );
966}
967
968// All jQuery objects should point back to these
969rootjQuery = jQuery(document);

Callers 1

jquery-1.9.1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected