MCPcopy Create free account
hub / github.com/WebReflection/neverland / _arrayLikeToArray

Function _arrayLikeToArray

index.js:27–33  ·  view source on GitHub ↗
(arr, len)

Source from the content-addressed store, hash-verified

25 }
26
27 function _arrayLikeToArray(arr, len) {
28 if (len == null || len > arr.length) len = arr.length;
29
30 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
31
32 return arr2;
33 }
34
35 function _nonIterableSpread() {
36 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");

Callers 2

_arrayWithoutHolesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected