Home > rc-js-util > mapEntriesToArray
Converts a Map into an Array of its key value pairs.
Signature:
export declare function mapEntriesToArray<TKey, TValue>(map: Map<TKey, TValue>): [TKey, TValue][];
| Parameter | Type | Description |
|---|---|---|
| map | Map<TKey, TValue> |
Returns:
[TKey, TValue][]
An array of tuples, the first value corresponding to the key and the second to the value.
See mapEntriesToArray().