Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/vercel/next.js
/ reduce
Function
reduce
packages/next/src/compiled/@vercel/og/index.node.js:967–975 ·
view source on GitHub ↗
(xs2, f, acc)
Source
from the content-addressed store, hash-verified
965
return
res;
966
}
967
function
reduce(xs2, f, acc) {
968
if
(xs2.reduce) {
969
return
xs2.reduce(f, acc);
970
}
971
for
(
var
i = 0; i < xs2.length; i++) {
972
acc = f(acc, xs2[i], i);
973
}
974
return
acc;
975
}
976
}
977
});
978
Callers
1
walk
Function · 0.70
Calls
2
reduce
Method · 0.80
f
Function · 0.70
Tested by
no test coverage detected