29 lines
614 B
Markdown
29 lines
614 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.
|
|
>
|
|
>
|
|
|
|
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
|
|
|