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

Function isArrayLike

static/webuploader/webuploader.custom.js:1701–1716  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

1699 widgetClass = [];
1700
1701 function isArrayLike( obj ) {
1702 if ( !obj ) {
1703 return false;
1704 }
1705
1706 var length = obj.length,
1707 type = $.type( obj );
1708
1709 if ( obj.nodeType === 1 && length ) {
1710 return true;
1711 }
1712
1713 return type === 'array' || type !== 'function' && type !== 'string' &&
1714 (length === 0 || typeof length === 'number' && length > 0 &&
1715 (length - 1) in obj);
1716 }
1717
1718 function Widget( uploader ) {
1719 this.owner = uploader;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected