🦖 Intl.PluralRules.prototype.selectRange()
✅ Widely available (from Aug 2023)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/PluralRules/selectRange

The selectRange() method of Intl.PluralRules instances receives two values and returns a string indicating which plural rule to use for locale-aware formatting of the indicated range.

#webdev #JavaScript

Intl.PluralRules.prototype.selectRange() - JavaScript | MDN

The selectRange() method of Intl.PluralRules instances receives two values and returns a string indicating which plural rule to use for locale-aware formatting of the indicated range.

MDN Web Docs