Skip to content

Commit

Permalink
refactor: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
madkarmaa committed Dec 21, 2024
1 parent e3214ad commit 41bc06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const secToMs = (sec: number): number => sec * 1000;

export const minToMs = (min: number): number => secToMs(min * 60);

export const choose = <T>(array: T[]): T => array[Math.floor(Math.random() * array.length)];
export const choose = <T>(items: T[]): T => items[Math.floor(Math.random() * items.length)];

export const base64 = {
encode: (input: string): string => btoa(input),
Expand Down

0 comments on commit 41bc06b

Please sign in to comment.