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

Function isArraylike

2.0.3/Core.js:853–868  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

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

Callers 1

Core.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected