The Intl.Collator.prototype
property represents the prototype object for the Intl.Collator
constructor.
Property attributes of Intl.Collator.prototype |
|
---|---|
Writable | no |
Enumerable | no |
Configurable | no |
Description
See Collator
for a description of Intl.Collator
instances.
Intl.Collator
instances inherit from Intl.Collator.prototype
. Modifications to the prototype object are inherited by all Intl.Collator
instances.
Properties
-
Intl.Collator.prototype.constructor
-
A reference to
Intl.Collator
.
Methods
-
Intl.Collator.prototype.compare
-
Getter function that compares two strings according to the sort order of this
Intl.Collator
object.
-
Intl.Collator.prototype.resolvedOptions()
- Returns a new object with properties reflecting the locale and collation options computed during initialization of the object.
Specifications
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 24 | Edge Full support 12 | Firefox Full support 29 | IE Full support 11 | Opera Full support 15 | Safari Full support 10 | WebView Android No support No | Chrome Android Full support 26 | Firefox Android Full support 56 | Opera Android ? | Safari iOS Full support 10 | Samsung Internet Android Full support 1.5 | nodejs ? |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown