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

24 lines
558 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; [defaultWhen](./js-utils.defaultwhen.md)
## defaultWhen() function
<b>Signature:</b>
```typescript
export declare function defaultWhen<TVal>(condition: boolean, ...items: Array<TVal>): TVal;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| condition | <code>boolean</code> | |
| items | <code>Array&lt;TVal&gt;</code> | |
<b>Returns:</b>
`TVal`