- Preparing search index...
- The search index is not available
lightdash
Function getExistingElseThrow
- getExistingElseThrow<TKey, UValue>(map: ReadonlyMap<TKey, UValue>, key: TKey): UValue
-
Parameters
-
map: ReadonlyMap<TKey, UValue>
-
key: TKey
Returns UValue
Gets the value of a map entry by its key, throwing if the map does not contain the key.
Since
13.0.0
Returns
The corresponding value.
Throws
TypeError if map does not contain key.
Example