MCPcopy Create free account
hub / github.com/components/jquery / isArrayLike

Function isArrayLike

jquery.js:79–90  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

77}
78
79function isArrayLike( obj ) {
80
81 var length = !!obj && obj.length,
82 type = toType( obj );
83
84 if ( typeof obj === "function" || isWindow( obj ) ) {
85 return false;
86 }
87
88 return type === "array" || length === 0 ||
89 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
90}
91
92var document$1 = window.document;
93

Callers 2

jquery.jsFile · 0.70
buildFragmentFunction · 0.70

Calls 2

toTypeFunction · 0.70
isWindowFunction · 0.70

Tested by

no test coverage detected