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

Function isArrayLike

static/webuploader/webuploader.html5nodepend.js:1754–1769  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

1752 widgetClass = [];
1753
1754 function isArrayLike( obj ) {
1755 if ( !obj ) {
1756 return false;
1757 }
1758
1759 var length = obj.length,
1760 type = $.type( obj );
1761
1762 if ( obj.nodeType === 1 && length ) {
1763 return true;
1764 }
1765
1766 return type === 'array' || type !== 'function' && type !== 'string' &&
1767 (length === 0 || typeof length === 'number' && length > 0 &&
1768 (length - 1) in obj);
1769 }
1770
1771 function Widget( uploader ) {
1772 this.owner = uploader;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected