js-util

Home > rc-js-util > mapFirstValue

mapFirstValue() function

Gets the first inserted value in a Map.

Signature:

export declare function mapFirstValue<K, V>(map: Map<K, V>): V | undefined;

Parameters

Parameter Type Description
map Map<K, V>  

Returns:

V | undefined

The first value in map, otherwise undefined where size 0.

Remarks

See mapFirstValue().