Home > rc-js-util > mapArrayMap
Like Array.map
but with a Map
input. Outputs an Array
.
Signature:
export declare function mapArrayMap<TKey, TValue, TMapped>(map: Map<TKey, TValue>, callback: (value: TValue, key: TKey) => TMapped): TMapped[];
Parameter | Type | Description |
---|---|---|
map | Map<TKey, TValue> | |
callback | (value: TValue, key: TKey) => TMapped |
Returns:
TMapped[]
An array of mapped values.
See mapArrayMap().