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

27 lines
587 B
Markdown
Raw Normal View History

2020-03-29 13:43:52 +00:00
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [mustCoalesce](./js-utils.mustcoalesce.md)
## mustCoalesce() function
Return the first value that is not nil.
TODO: rename to mustDefault
2020-03-29 13:43:52 +00:00
<b>Signature:</b>
```typescript
export declare function mustCoalesce<T>(...values: Array<Optional<T>>): T;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| values | <code>Array&lt;Optional&lt;T&gt;&gt;</code> | |
<b>Returns:</b>
`T`