mapWithIndex
mapWithIndex<
A,B>(f): (data) => readonlyB[]
Defined in: Data/Arr.ts:140
Transforms each element using both its value and its zero-based index.
Type Parameters
Section titled “Type Parameters”A
B
Parameters
Section titled “Parameters”(i, a) => B
Returns
Section titled “Returns”(data) => readonly B[]