You are reading the documentation for the next version of discord.js. Documentation for v13/v14+ has been moved to old.discordjs.dev

normalizeArray

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