mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-23 00:35:42 +00:00
5 lines
137 B
TypeScript
5 lines
137 B
TypeScript
|
export function numberFormat(value: number) {
|
||
|
return new Intl.NumberFormat('en', {
|
||
|
notation: 'compact'
|
||
|
}).format(value)
|
||
|
}
|