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

23 lines
539 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [ensureArray](./js-utils.ensurearray.md)
## ensureArray() function
<b>Signature:</b>
```typescript
export declare function ensureArray<T>(val: Optional<Array<T>>): Array<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | [Optional](./js-utils.optional.md)<!-- -->&lt;Array&lt;T&gt;&gt; | |
<b>Returns:</b>
Array&lt;T&gt;