Add formatNumber function to numbers.ts
This commit is contained in:
parent
11362e3638
commit
907258cd61
@ -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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user