normalizeArray

export declare function normalizeArray<ItemType>(arr: RestOrArray<ItemType>): ItemType[];
export declare function normalizeArray<ItemType>(arr: RestOrArray<ItemType>): ItemType[];
Normalizes data that is a rest parameter or an array into an array with a depth of 1.
NameConstraintsOptionalDefaultDescription
ItemTypeNoThe data that must satisfy RestOrArray.
NameTypeOptionalDescription
arrRestOrArray<ItemType>NoThe (possibly variadic) data to normalize