MCPcopy Create free account
hub / github.com/PrairieLearn/PrairieLearn / _isArrayLike

Function _isArrayLike

public/javascripts/async.js:71–78  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

69 };
70
71 function _isArrayLike(arr) {
72 return _isArray(arr) || (
73 // has a positive integer length property
74 typeof arr.length === "number" &&
75 arr.length >= 0 &&
76 arr.length % 1 === 0
77 );
78 }
79
80 function _arrayEach(arr, iterator) {
81 var index = -1,

Callers 3

_keyIteratorFunction · 0.85
_asyncMapFunction · 0.85
_parallelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected