Skip to content

Commit 1e3e117

Browse files
author
Wassim CHEGHAM
committed
chore: add helper functions
1 parent 5ea6cd3 commit 1e3e117

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/helpers.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export const format = (num: number) => num.toLocaleString('en');
2+
3+
export const descOrder = stats => (a, b) => stats[b] - stats[a];

0 commit comments

Comments
 (0)