MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isArrayLike

Function isArrayLike

static/wangEditor/js/lib/jquery-2.2.1.js:524–539  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

522} );
523
524function isArrayLike( obj ) {
525
526 // Support: iOS 8.2 (not reproducible in simulator)
527 // `in` check used to prevent JIT error (gh-2145)
528 // hasOwn isn't used here due to false negatives
529 // regarding Nodelist length in IE
530 var length = !!obj && "length" in obj && obj.length,
531 type = jQuery.type( obj );
532
533 if ( type === "function" || jQuery.isWindow( obj ) ) {
534 return false;
535 }
536
537 return type === "array" || length === 0 ||
538 typeof length === "number" && length > 0 && ( length - 1 ) in obj;
539}
540var Sizzle =
541/*!
542 * Sizzle CSS Selector Engine v2.2.1

Callers 1

jquery-2.2.1.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected