25 lines
556 B
Markdown
25 lines
556 B
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [mustCoalesce](./js-utils.mustcoalesce.md)
|
||
|
|
||
|
## mustCoalesce() function
|
||
|
|
||
|
Return the first value that is not nil.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function mustCoalesce<T>(...values: Array<Optional<T>>): T;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| values | <code>Array<Optional<T>></code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`T`
|
||
|
|