Skip to content

getFirstMapEntry

getFirstMapEntry<K, V>(map): undefined | [K, V]

Defined in: utils/map.ts:57

Returns the first entry in the provided map. If the map is empty, the function returns undefined.

K = any

V = any

Map<K, V>

The map to get the last entry from.

undefined | [K, V]

The last entry in the map, or undefined if the map is empty.