564 B
564 B
Home > @apextoaster/js-utils > ensureArray
ensureArray() function
Signature:
export declare function ensureArray<T>(val: Maybe<ReadonlyArray<T>>): ReadonlyArray<T>;
Parameters
Parameter | Type | Description |
---|---|---|
val | Maybe<ReadonlyArray<T>> |
Returns:
ReadonlyArray<T>