Home > rc-js-util > arrayMap
Like Array.map
.
Signature:
export declare function arrayMap<TItem, TMapped>(items: ArrayLike<TItem>, callback: (item: TItem, index: number) => TMapped): TMapped[];
Parameter | Type | Description |
---|---|---|
items | ArrayLike<TItem> | |
callback | (item: TItem, index: number) => TMapped |
Returns:
TMapped[]
Has more consistent performance characteristics cross platform than the built in Array.map
See arrayMap().