mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 13:55:40 +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)
|
|
} |