Deleted a custom number-abbreviation helper in our frontend repo today and replaced it with new Intl.NumberFormat('en', { notation: 'compact' }). It formats 12,400 into 12.4K natively in the browser and handles edge cases without a single regex.
commit 6acbd49