Skip to content

Commit

Permalink
fixing range while we are at it
Browse files Browse the repository at this point in the history
  • Loading branch information
akmazian committed Nov 14, 2023
1 parent 71d7a63 commit aa58641
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/utils/range.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
export function range(a: number, b: number, step = 1): number[] {
return Array(b - a)
.fill(0)
.map((_, i) => i + a);
.map((_, i) => step * i + a);
}

0 comments on commit aa58641

Please sign in to comment.