MCPcopy Create free account
hub / github.com/pomber/code-surfer / map

Method map

packs/standalone/src/tuple.ts:83–88  ·  view source on GitHub ↗
(mapper: (t: Tuple<T>, key?: any, self?: ArrayTuple<T>) => M)

Source from the content-addressed store, hash-verified

81 }
82
83 map<M>(mapper: (t: Tuple<T>, key?: any, self?: ArrayTuple<T>) => M) {
84 const childrenMap = this._getChildrenMap();
85 const result: M[] = [];
86 childrenMap.forEach((tuple, key) => result.push(mapper(tuple, key, this)));
87 return result;
88 }
89}

Callers

nothing calls this directly

Calls 1

_getChildrenMapMethod · 0.95

Tested by

no test coverage detected