Add formatNumber function to numbers.ts

This commit is contained in:
Dede Fuji Abdul 2024-02-29 19:52:56 +07:00
parent 11362e3638
commit 907258cd61

View File

@ -12,6 +12,11 @@ const splitRoutePath = (routePath: string): string[] => {
return routeArray
}
export {
splitRoutePath
const formatNumber = (number: number): string => {
return new Intl.NumberFormat('en-US').format(number)
}
export {
splitRoutePath,
formatNumber
}