Performs [].map() on an array but transfers the input tuple's size to the output type.
[].map()
A new array (does not mutate).
import {typedMap} from '@augment-vir/common';const result = await typedMap([1, 2, 3, 4, 5], (value) => { return value + 1;}); Copy
import {typedMap} from '@augment-vir/common';const result = await typedMap([1, 2, 3, 4, 5], (value) => { return value + 1;});
@augment-vir/common
Performs
[].map()
on an array but transfers the input tuple's size to the output type.