The Intl.PluralRules.prototype property represents the prototype object for the Intl.PluralRules constructor.
Property attributes of Intl.PluralRules.prototype |
|
|---|---|
| Writable | no |
| Enumerable | no |
| Configurable | no |
Description
See PluralRules for a description of Intl.PluralRules instances.
Intl.PluralRules instances inherit from Intl.PluralRules.prototype. Modifications to the prototype object are inherited by all Intl.PluralRules instances.
Properties
-
Intl.PluralRules.prototype.constructor -
A reference to
Intl.PluralRules.
Methods
-
Intl.PluralRules.prototype.resolvedOptions() - Returns a new object with properties reflecting the locale and collation options computed during initialization of the object.
-
Intl.PluralRules.prototype.select() -
Returns a
Stringindicating which plural rule to use for locale-aware formatting.
Specifications
| Specification | Status | Comment |
|---|---|---|
| Intl Plural Rules Draft | Draft | Initial definition. |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out
https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
| Desktop | Mobile | Server | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
prototype |
Chrome Full support 63 | Edge Full support 18 | Firefox Full support 58 | IE No support No | Opera Full support 50 | Safari No support No | WebView Android Full support 63 | Chrome Android Full support 63 | Firefox Android Full support 58 | Opera Android Full support 46 | Safari iOS No support No | Samsung Internet Android Full support 8.0 | nodejs Full support 10.0.0 |
Legend
- Full support
- Full support
- No support
- No support