2020-03-31 23:47:44 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [ensureArray](./js-utils.ensurearray.md)
|
|
|
|
|
|
|
|
## ensureArray() function
|
|
|
|
|
2021-07-25 00:41:28 +00:00
|
|
|
> Warning: This API is now obsolete.
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
2020-03-31 23:47:44 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-07-10 21:54:41 +00:00
|
|
|
export declare function ensureArray<T>(val: Maybe<Array<T>>): Array<T>;
|
2020-03-31 23:47:44 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-07-10 21:54:41 +00:00
|
|
|
| val | [Maybe](./js-utils.maybe.md)<!-- --><Array<T>> | |
|
2020-03-31 23:47:44 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
Array<T>
|
2020-03-31 23:47:44 +00:00
|
|
|
|