2020-06-30 13:16:22 +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_1.md)
|
|
|
|
|
|
|
|
## ensureArray() function
|
|
|
|
|
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-07-10 21:54:41 +00:00
|
|
|
export declare function ensureArray<T>(val: Maybe<ReadonlyArray<T>>): ReadonlyArray<T>;
|
2020-06-30 13:16:22 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-07-10 21:54:41 +00:00
|
|
|
| val | [Maybe](./js-utils.maybe.md)<!-- --><ReadonlyArray<T>> | |
|
2020-06-30 13:16:22 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
ReadonlyArray<T>
|
|
|
|
|