614 B
614 B
Home > @apextoaster/js-utils > toArray
toArray() function
Copy an existing array-like or convert a single value to an array.
Signature:
export declare function toArray<TVal>(val: Maybe<TVal | Array<TVal>>): Array<TVal>;
Parameters
Parameter | Type | Description |
---|---|---|
val | Maybe<TVal | Array<TVal>> |
Returns:
Array<TVal>