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

Function map

test/fixtures/snapshot/typescript.js:633–642  ·  view source on GitHub ↗
(array, f)

Source from the content-addressed store, hash-verified

631 }
632 ts.clear = clear;
633 function map(array, f) {
634 var result;
635 if (array) {
636 result = [];
637 for (var i = 0; i < array.length; i++) {
638 result.push(f(array[i], i));
639 }
640 }
641 return result;
642 }
643 ts.map = map;
644 function mapIterator(iter, mapFn) {
645 return {

Callers 15

arrayFromFunction · 0.70
checkimports.pyFile · 0.50
GetAnnotationInfoMethod · 0.50
satisfyFunction · 0.50
joinMethod · 0.50
splitMethod · 0.50
rsplitMethod · 0.50
splitlinesMethod · 0.50
partitionMethod · 0.50
rpartitionMethod · 0.50
utils.pyFile · 0.50
ExecCompileXcassetsMethod · 0.50

Calls 2

fFunction · 0.50
pushMethod · 0.45

Tested by 1

GetAnnotationInfoMethod · 0.40