W3cubDocs

/JavaScript

PluralRules.prototype

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 String indicating which plurar rule to use for locale-aware formatting.

Specifications

Specification Status Comment
Intl Plural Rules Draft Draft Initial definition.

Browser compatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 63 Yes 58 No 50 No
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 63 63 No 58 50 No No
Server
Node.js
Basic support No

See also

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/PluralRules/prototype