2 lines
78 B
TypeScript

export const numFormatter = Intl.NumberFormat('en', { notation: 'compact' });