normalizeArray
Normalizes data that is a rest parameter or an array into an array with a depth of 1.
export declare function normalizeArray<T>(arr: RestOrArray<T>): T[];
export declare function normalizeArray<T>(arr: RestOrArray<T>): T[];
Name | Type | Optional | Description |
---|---|---|---|
arr | RestOrArray<T> | No | The (possibly variadic) data to normalize |