--- title: Intl.Collator.prototype slug: conflicting/Web/JavaScript/Reference/Global_Objects/Intl/Collator tags: - Collator - Internationalisation - Intl - JavaScript - Propriété - Prototype - Reference - i18n translation_of: Web/JavaScript/Reference/Global_Objects/Intl/Collator translation_of_original: Web/JavaScript/Reference/Global_Objects/Intl/Collator/prototype original_slug: Web/JavaScript/Reference/Objets_globaux/Intl/Collator/prototype ---
{{JSRef}}

La propriété Intl.Collator.prototype représente l'objet prototype du constructeur {{jsxref("Collator", "Intl.Collator")}}.

{{js_property_attributes(0,0,0)}}

Description

Voir la page {{jsxref("Collator")}} pour une description appliquée aux instances de Intl.Collator.

Les instances de Intl.Collator héritent de Intl.Collator.prototype. Les modifications apportées à l'objet prototype sont propagées sur toutes les instances de Intl.Collator via l'héritage (chaîne de prototypes).

Propriétés

Intl.Collator.protoype.constructor
Une référence vers {{jsxref("Collator")}}.

Méthodes

{{jsxref("Collator.compare", "Intl.Collator.prototype.compare")}}
Un accesseur qui renvoie une fonction comparant deux chaînes de caractères, basée sur l'ordre de tri de l'objet {{jsxref("Objets_globaux/Collator", "Intl.Collator")}}.
{{jsxref("Collator.resolvedOptions", "Intl.Collator.prototype.resolvedOptions()")}}
Renvoie un nouvel objet dont les propriétés correspondent aux options de collation et de locales calculées lors de l'initialisation de l'objet.

Spécifications

Spécification Statut Commentaires
{{SpecName('ES Int 1.0', '#sec-10.2.1', 'Intl.Collator.prototype')}} {{Spec2('ES Int 1.0')}} Définition initiale.
{{SpecName('ES Int 2.0', '#sec-10.2.1', 'Intl.Collator.prototype')}} {{Spec2('ES Int 2.0')}}  
{{SpecName('ES Int Draft', '#sec-Intl.Collator.prototype', 'Intl.Collator.prototype')}} {{Spec2('ES Int Draft')}}  

Compatibilité des navigateurs

{{Compat("javascript.builtins.Intl.Collator.prototype")}}

Voir aussi