MCPcopy Create free account
hub / github.com/blacksmithgu/datacore / map

Method map

src/api/data-array.ts:221–223  ·  view source on GitHub ↗
(f: ArrayFunc<T, U>)

Source from the content-addressed store, hash-verified

219 }
220
221 public map<U>(f: ArrayFunc<T, U>): DataArray<U> {
222 return this.lwrap(this.values.map(f));
223 }
224
225 public flatMap<U>(f: ArrayFunc<T, U[]>): DataArray<U> {
226 let result = [];

Callers 3

joinMethod · 0.95
groupInMethod · 0.95
distinctMethod · 0.95

Calls 2

lwrapMethod · 0.95
mapMethod · 0.65

Tested by

no test coverage detected