MCPcopy Index your code
hub / github.com/developit/asyncro / baseMap

Function baseMap

src/util.js:30–35  ·  view source on GitHub ↗
(operation)

Source from the content-addressed store, hash-verified

28 * @return {Array} resulting mapped/transformed values.
29 */
30export function baseMap(operation) {
31 return async (array, predicate) => {
32 let mapped = await map(array, predicate);
33 return array[operation]( (v, i) => mapped[i] );
34 };
35}

Callers 1

index.jsFile · 0.90

Calls 1

mapFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…