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

Function arrayFrom

test/fixtures/snapshot/typescript.js:1501–1507  ·  view source on GitHub ↗
(iterator, map)

Source from the content-addressed store, hash-verified

1499 }
1500 ts.arrayOf = arrayOf;
1501 function arrayFrom(iterator, map) {
1502 var result = [];
1503 for (var iterResult = iterator.next(); !iterResult.done; iterResult = iterator.next()) {
1504 result.push(map ? map(iterResult.value) : iterResult.value);
1505 }
1506 return result;
1507 }
1508 ts.arrayFrom = arrayFrom;
1509 function assign(t) {
1510 var args = [];

Callers 2

groupFunction · 0.85
createSetFunction · 0.85

Calls 3

mapFunction · 0.70
nextMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…