Skip to content

Commit

Permalink
Make arrays_equal check generic to avoid any[] type
Browse files Browse the repository at this point in the history
  • Loading branch information
marius-mather committed Jun 4, 2024
1 parent 412009b commit ae27307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function arrays_equal(a: any[], b: any[]) {
export function arrays_equal<T>(a: T[], b: T[]) {
return a.length === b.length &&
a.every((v, i) => v === b[i]);
}

0 comments on commit ae27307

Please sign in to comment.