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

675 B

Home > @apextoaster/js-utils > getHeadOrDefault

getHeadOrDefault() function

Signature:

export declare function getHeadOrDefault<TKey, TVal>(map: Map<TKey, Array<Optional<TVal>>>, key: TKey, defaultValue: TVal): TVal;

Parameters

Parameter Type Description
map Map<TKey, Array<Optional<TVal>>>
key TKey
defaultValue TVal

Returns:

TVal