Intl.Collator.prototype

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.compare
Getter; returns a function that compares two strings according to the sort order of this Intl.Collator object.
Intl.Collator.prototype.constructor
A reference to Intl.Collator.

Methods

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.
Standard Initial definition.
ECMAScript Internationalization API 2.0 (ECMA-402)
The definition of 'Intl.Collator.prototype' in that specification.
Standard  
ECMAScript Internationalization API 4.0 (ECMA-402)
The definition of 'Intl.Collator.prototype' in that specification.
Draft  

Browser compatibility

Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 24 (Yes) 29 (29) 11 15 No support
Feature Android Chrome for Android Edge Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support No support 26 (Yes) 54.0 (54) (nightly-only) No support No support No support

See also

Document Tags and Contributors

 Contributors to this page: jameshkramer, arai, fscholz, Mingun, Sheppy, Norbert
 Last updated by: jameshkramer,