610 B
610 B
Home > @apextoaster/js-utils > getHead
getHead() function
Get the first element from the specified key within a map of lists.
Signature:
export declare function getHead<TKey, TVal>(map: Map<TKey, ReadonlyArray<TVal>>, key: TKey): TVal;
Parameters
Parameter | Type | Description |
---|---|---|
map | Map<TKey, ReadonlyArray<TVal>> | |
key | TKey |
Returns:
TVal