28 lines
602 B
Markdown
28 lines
602 B
Markdown
<!-- 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
|
|
|
|
> Warning: This API is now obsolete.
|
|
>
|
|
> renamed to `toArray`
|
|
>
|
|
|
|
<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)<!-- --><Array<T>> | |
|
|
|
|
<b>Returns:</b>
|
|
|
|
Array<T>
|
|
|