Format large numbers (#556)

This commit is contained in:
Ollie H
2023-05-01 11:31:00 -07:00
committed by GitHub
parent 7171d0404e
commit 0ec98c77ef
3 changed files with 11 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
export const formatCount = (num: number) =>
Intl.NumberFormat('en-US', {
notation: 'compact',
maximumFractionDigits: 1,
}).format(num)