MCPcopy
hub / github.com/hokein/electron-sample-apps / isArraylike

Function isArraylike

camera/jquery.js:534–548  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

532});
533
534function isArraylike( obj ) {
535 var length = obj.length,
536 type = jQuery.type( obj );
537
538 if ( type === "function" || jQuery.isWindow( obj ) ) {
539 return false;
540 }
541
542 if ( obj.nodeType === 1 && length ) {
543 return true;
544 }
545
546 return type === "array" || length === 0 ||
547 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
548}
549var Sizzle =
550/*!
551 * Sizzle CSS Selector Engine v1.10.19

Callers 1

jquery.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected