js-util

Home > rc-js-util > mapArrayMap

mapArrayMap() function

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[];

Parameters

Parameter Type Description
map Map<TKey, TValue>  
callback (value: TValue, key: TKey) => TMapped  

Returns:

TMapped[]

An array of mapped values.

Remarks

See mapArrayMap().