MCPcopy
hub / github.com/kefirjs/kefir / map

Function map

src/utils/collections.js:91–99  ·  view source on GitHub ↗
(input, fn)

Source from the content-addressed store, hash-verified

89}
90
91function map(input, fn) {
92 let length = input.length,
93 result = new Array(length),
94 i
95 for (i = 0; i < length; i++) {
96 result[i] = fn(input[i])
97 }
98 return result
99}
100
101function forEach(arr, fn) {
102 let length = arr.length,

Callers 1

ZipFunction · 0.90

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected