MCPcopy Index your code
hub / github.com/bigcode-project/jupytercoder / _arrayLikeToArray

Function _arrayLikeToArray

src/diff.js:438–444  ·  view source on GitHub ↗
(arr, len)

Source from the content-addressed store, hash-verified

436 }
437
438 function _arrayLikeToArray(arr, len) {
439 if (len == null || len > arr.length) len = arr.length;
440
441 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
442
443 return arr2;
444 }
445
446 function _nonIterableSpread() {
447 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