MCPcopy
hub / github.com/vercel/next.js / map

Function map

packages/next/src/compiled/@vercel/og/index.edge.js:957–966  ·  view source on GitHub ↗
(xs, f)

Source from the content-addressed store, hash-verified

955 return keys;
956 };
957 function map(xs, f) {
958 if (xs.map) {
959 return xs.map(f);
960 }
961 var res = [];
962 for (var i = 0; i < xs.length; i++) {
963 res.push(f(xs[i], i));
964 }
965 return res;
966 }
967 function reduce(xs, f, acc) {
968 if (xs.reduce) {
969 return xs.reduce(f, acc);

Callers 1

walkFunction · 0.70

Calls 3

fFunction · 0.70
pushMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected