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

27 lines
578 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
> Warning: This API is now obsolete.
>
>
<b>Signature:</b>
```typescript
export declare function ensureArray<T>(val: Maybe<Array<T>>): Array<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | [Maybe](./js-utils.maybe.md)<!-- -->&lt;Array&lt;T&gt;&gt; | |
<b>Returns:</b>
Array&lt;T&gt;