Home > rc-js-util > mapFirstValue
Gets the first inserted value in a Map
.
Signature:
export declare function mapFirstValue<K, V>(map: Map<K, V>): V | undefined;
Parameter | Type | Description |
---|---|---|
map | Map<K, V> |
Returns:
V | undefined
The first value in map
, otherwise undefined
where size 0.
See mapFirstValue().