indexArray
Edit this pageSimilar to mapArray
except it maps by index.
The item is a signal and the index is now the constant.
Underlying helper for the <Index>
control flow.
Arguments
Name | Type | Description |
---|---|---|
list | () => readonly T[] | The list to map. |
mapFn | (v: () => T, i: number) => U | The mapping function. |