Home > @apextoaster/js-utils > ensureArray
Warning: This API is now obsolete.
renamed to
toArray
Signature:
export declare function ensureArray<T>(val: Maybe<Array<T>>): Array<T>;
Parameter | Type | Description |
---|---|---|
val | Maybe<Array<T>> |
Returns:
Array<T>