MCPcopy
hub / github.com/nbubna/store / isArraylike

Function isArraylike

libs/jquery/jquery.js:931–946  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

929});
930
931function isArraylike( obj ) {
932 var length = obj.length,
933 type = jQuery.type( obj );
934
935 if ( jQuery.isWindow( obj ) ) {
936 return false;
937 }
938
939 if ( obj.nodeType === 1 && length ) {
940 return true;
941 }
942
943 return type === "array" || type !== "function" &&
944 ( length === 0 ||
945 typeof length === "number" && length > 0 && ( length - 1 ) in obj );
946}
947
948// All jQuery objects should point back to these
949rootjQuery = jQuery(document);

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…