js-util

Home > rc-js-util > mapKeysToArray

mapKeysToArray() function

Converts a Map into an Array of its keys.

Signature:

export declare function mapKeysToArray<TKey, TValue>(map: Map<TKey, TValue>): TKey[];

Parameters

Parameter Type Description
map Map<TKey, TValue>  

Returns:

TKey[]

The keys of the map.

Remarks

See mapKeysToArray().