getLastMapEntry
getLastMapEntry<
K
,V
>(map
): [K
,V
] |undefined
Defined in: utils/map.ts:47
Returns the last entry in the provided map. If the map is empty, the function returns undefined.
Type Parameters
• K = any
• V = any
Parameters
map
Map
<K
, V
>
The map to get the last entry from.
Returns
[K
, V
] | undefined
The last entry in the map, or undefined if the map is empty.