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