675 B
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