[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [ensureArray](./js-utils.ensurearray.md) ## ensureArray() function Signature: ```typescript export declare function ensureArray(val: Optional>): Array; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | val | Optional<Array<T>> | | Returns: `Array`