`Intl.NumberFormat`
You might already be familiar with the Intl.NumberFormat
API, as it’s been supported across modern environments for a while now.
In its most basic form, Intl.NumberFormat
lets you create a reusable formatter instance that supports locale-aware number formatting. Just like other Intl.*Format
APIs, a formatter instance supports both a format
and a formatToParts
method: