1
0
Fork 0
js-utils/docs/api/js-utils.gethead.md

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