622 B
622 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, Array<TVal>>, key: TKey): TVal;
Parameters
Parameter | Type | Description |
---|---|---|
map | Map<TKey, Array<TVal>> |
|
key | TKey |
Returns:
TVal