diff --git a/src/utils/numbers.ts b/src/utils/numbers.ts index 18dac0f..41ee0f7 100755 --- a/src/utils/numbers.ts +++ b/src/utils/numbers.ts @@ -12,6 +12,11 @@ const splitRoutePath = (routePath: string): string[] => { return routeArray } +const formatNumber = (number: number): string => { + return new Intl.NumberFormat('en-US').format(number) +} + export { - splitRoutePath + splitRoutePath, + formatNumber } \ No newline at end of file