MCPcopy Index your code
hub / github.com/jquery/jquery / isArrayLike

Function isArrayLike

dist-module/jquery.module.js:65–76  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

63}
64
65function isArrayLike( obj ) {
66
67 var length = !!obj && obj.length,
68 type = toType( obj );
69
70 if ( typeof obj === "function" || isWindow( obj ) ) {
71 return false;
72 }
73
74 return type === "array" || length === 0 ||
75 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
76}
77
78var document$1 = window.document;
79

Callers 2

jQueryFactoryFunction · 0.70
buildFragmentFunction · 0.70

Calls 2

toTypeFunction · 0.70
isWindowFunction · 0.70

Tested by

no test coverage detected