MCPcopy Create free account
hub / github.com/developit/asyncro / map

Function map

src/util.js:3–5  ·  view source on GitHub ↗
(array, mapper)

Source from the content-addressed store, hash-verified

1
2/** @private */
3export function map(array, mapper) {
4 return Promise.all(array.map(mapper));
5}
6
7/** Invoke a list (object or array) of functions, returning their results in the same structure.
8 * @private

Callers 2

index.jsFile · 0.90
baseMapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected