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