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

573 B

Home > @apextoaster/js-utils > ensureArray

ensureArray() function

Signature:

export declare function ensureArray<T>(val: Optional<ReadonlyArray<T>>): ReadonlyArray<T>;

Parameters

Parameter Type Description
val Optional<ReadonlyArray<T>>

Returns:

ReadonlyArray<T>