Add formatNumber function to numbers.ts
This commit is contained in:
@ -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
|
||||
}
|
Reference in New Issue
Block a user