Type Definitions
Functions
-
toArray( data ) → Array<T>
module:utils/toarray~toArray:MUTABLE
Transforms any value to an array. If the provided value is already an array, it is returned unchanged.
Type parameters
T
Parameters
data
:
ArrayOrItem<T>
The value to transform to an array.
Returns
Array<T>
An array created from data.
-
toArray( data ) → ReadonlyArray<T>
module:utils/toarray~toArray:IMMUTABLE
Transforms any value to an array. If the provided value is already an array, it is returned unchanged.
Type parameters
T
Parameters
data
:
ReadonlyArrayOrItem<T>
The value to transform to an array.
Returns
ReadonlyArray<T>
An array created from data.
Every day, we work hard to keep our documentation complete. Have you spotted outdated information? Is something missing?
Please report it via our issue tracker.
With the release of version 42.0.0, we have rewritten much of our documentation to reflect the new import paths and features.
We appreciate your feedback to help us ensure its accuracy and completeness.