25 lines
609 B
Markdown
25 lines
609 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [mustDefault](./js-utils.mustdefault.md)
|
||
|
|
||
|
## mustDefault() function
|
||
|
|
||
|
Return the first value that is some `T`<!-- -->. Throw if they are all `None`<!-- -->.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function mustDefault<T>(...values: Array<Maybe<T>>): T;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| values | Array<[Maybe](./js-utils.maybe.md)<!-- --><T>> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
T
|
||
|
|