Standard built-ins
Intl.PluralRules.prototype.resolvedOptions()
Report selected locale, plural type, rounding and supported plural categories for this rules object.
Formal Syntax & Structure
javascript syntaxjavascript
formatter.resolvedOptions()Return Value
Object
Effective plural rule settings.
Working Example
Example Snippetjavascript
console.log(new Intl.PluralRules("en").resolvedOptions().pluralCategories.includes("other"));