30 lines
643 B
Markdown
30 lines
643 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
|
|
|
|
> Warning: This API is now obsolete.
|
|
>
|
|
> use `mustDefault` instead
|
|
>
|
|
|
|
Return the first value that is not nil.
|
|
|
|
<b>Signature:</b>
|
|
|
|
```typescript
|
|
export declare function mustCoalesce<T>(...values: Array<Maybe<T>>): T;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| values | Array<[Maybe](./js-utils.maybe.md)<!-- --><T>> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
T
|
|
|