mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-14 11:25:41 +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)
|
||
|
}
|