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
ItemTypeNo
The data that must satisfy RestOrArray.
NameTypeOptionalDescription
arrRestOrArray<ItemType>No
The (possibly variadic) data to normalize