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

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>