JS Intl.Collator.prototype
The Intl.Collator.prototype property represents the prototype object for the Intl.Collator constructor.
Property attributes of Intl.Collator.prototype |
|---|
| Writable |
| Enumerable |
| Configurable |
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
| Specification | Status | Comment |
|---|---|---|
| [ECMAScript Internationalization API 1.0 (ECMA-402) | ||
| The definition of ‘Intl.Collator.prototype’ in that specification.](https://www.ecma-international.org/ecma-402/1.0/#sec-10.2.1) | Standard | Initial definition. |
| [ECMAScript Internationalization API 2.0 (ECMA-402) | ||
| The definition of ‘Intl.Collator.prototype’ in that specification.](https://www.ecma-international.org/ecma-402/2.0/#sec-10.2.1) | Standard | |
| [ECMAScript Internationalization API 4.0 (ECMA-402) | ||
| The definition of ‘Intl.Collator.prototype’ in that specification.](https://tc39.es/ecma402/#sec-Intl.Collator.prototype) | Draft |