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

Function isArrayLike

dist-module/jquery.factory.slim.module.js:70–81  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

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

Callers 2

jQueryFactoryWrapperFunction · 0.70
buildFragmentFunction · 0.70

Calls 2

toTypeFunction · 0.70
isWindowFunction · 0.70

Tested by

no test coverage detected