The Intl object is the namespace for the ECMAScript Internationalization API, which provides language sensitive string comparison, number formatting, and date and time formatting. The Intl object provides access to several constructors as well as functionality common to the internationalization constructors and other language sensitive functions.1
Recently I found very handful function for formatting numbers, currency or units — Intl.NumberFormat
, which formats values for given language and region.
Documentation: Intl.NumberFormat on MDN
Sources:
- Image of JavaScript logotype used in thumbnail is licensed on MIT license, author: Christopher Williams.
Top comments (0)