26 lines
590 B
Markdown
26 lines
590 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [mustGet](./js-utils.mustget.md)
|
||
|
|
||
|
## mustGet() function
|
||
|
|
||
|
Get an element from a Map and guard against nil values.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function mustGet<TKey, TVal>(map: Map<TKey, TVal>, key: TKey): TVal;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| map | <code>Map<TKey, TVal></code> | |
|
||
|
| key | <code>TKey</code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`TVal`
|
||
|
|