MCPcopy Index your code
hub / github.com/nodejs/node / _arrayLikeToArray

Function _arrayLikeToArray

test/fixtures/snapshot/marked.js:43–49  ·  view source on GitHub ↗
(arr, len)

Source from the content-addressed store, hash-verified

41 }
42
43 function _arrayLikeToArray(arr, len) {
44 if (len == null || len > arr.length) len = arr.length;
45
46 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
47
48 return arr2;
49 }
50
51 function _createForOfIteratorHelperLoose(o, allowArrayLike) {
52 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected