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

562 B

Home > @apextoaster/js-utils > mustGet

mustGet() function

Get an element from a Map and guard against nil values.

Signature:

export declare function mustGet<TKey, TVal>(map: Map<TKey, TVal>, key: TKey): TVal;

Parameters

Parameter Type Description
map Map<TKey, TVal>
key TKey

Returns:

TVal