mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
chore: run format
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
* @param arr - The (possibly variadic) data to normalize
|
||||
*/
|
||||
export function normalizeArray<ItemType>(arr: RestOrArray<ItemType>): ItemType[] {
|
||||
if (Array.isArray(arr[0])) return [...arr[0]];
|
||||
if (Array.isArray(arr[0])) {
|
||||
return [...arr[0]];
|
||||
}
|
||||
|
||||
return arr as ItemType[];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user