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
|
return routeArray
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
const formatNumber = (number: number): string => {
|
||||||
splitRoutePath
|
return new Intl.NumberFormat('en-US').format(number)
|
||||||
|
}
|
||||||
|
|
||||||
|
export {
|
||||||
|
splitRoutePath,
|
||||||
|
formatNumber
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user