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

Function isArrayLike

static/webuploader/webuploader.fis.js:1199–1214  ·  view source on GitHub ↗
( obj )

Source from the content-addressed store, hash-verified

1197 widgetClass = [];
1198
1199 function isArrayLike( obj ) {
1200 if ( !obj ) {
1201 return false;
1202 }
1203
1204 var length = obj.length,
1205 type = $.type( obj );
1206
1207 if ( obj.nodeType === 1 && length ) {
1208 return true;
1209 }
1210
1211 return type === 'array' || type !== 'function' && type !== 'string' &&
1212 (length === 0 || typeof length === 'number' && length > 0 &&
1213 (length - 1) in obj);
1214 }
1215
1216 function Widget( uploader ) {
1217 this.owner = uploader;

Callers 1

webuploader.fis.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected