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

Method map

src/api/data-array.ts:35–35  ·  view source on GitHub ↗

Map elements in the data array by applying a function to each.

(f: ArrayFunc<T, U>)

Source from the content-addressed store, hash-verified

33
34 /** Map elements in the data array by applying a function to each. */
35 map<U>(f: ArrayFunc<T, U>): DataArray<U>;
36 /** Map elements in the data array by applying a function to each, then flatten the results to produce a new array. */
37 flatMap<U>(f: ArrayFunc<T, U[]>): DataArray<U>;
38 /** Mutably change each value in the array, returning the same array which you can further chain off of. */

Callers 15

normalizers.tsFile · 0.65
evalInContextFunction · 0.65
field.test.tsFile · 0.65
indexMethod · 0.65
allFilesMethod · 0.65
loadMethod · 0.65
_indexMethod · 0.65
_unindexMethod · 0.65
fromMethod · 0.65
jsonMethod · 0.65
fromMethod · 0.65
jsonMethod · 0.65

Implementers 1

DataArrayImplsrc/api/data-array.ts

Calls

no outgoing calls

Tested by

no test coverage detected