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

25 lines
609 B
Markdown
Raw Permalink Normal View History

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [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&lt;[Maybe](./js-utils.maybe.md)<!-- -->&lt;T&gt;&gt; | |
<b>Returns:</b>
T