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

24 lines
566 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_1.md)
## ensureArray() function
<b>Signature:</b>
```typescript
export declare function ensureArray<T>(val: Maybe<ReadonlyArray<T>>): ReadonlyArray<T>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| val | [Maybe](./js-utils.maybe.md)<!-- -->&lt;ReadonlyArray&lt;T&gt;&gt; | |
<b>Returns:</b>
ReadonlyArray&lt;T&gt;