1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
---
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
---
<div>{{JSRef}}</div>
<p>La propriété <code><strong>Intl.Collator.prototype</strong></code> représente l'objet prototype du constructeur {{jsxref("Collator", "Intl.Collator")}}.</p>
<div>{{js_property_attributes(0,0,0)}}</div>
<h2 id="Description">Description</h2>
<p>Voir la page {{jsxref("Collator")}} pour une description appliquée aux instances de <code>Intl.Collator</code>.</p>
<p>Les instances de <code>Intl.Collator</code> héritent de <code>Intl.Collator.prototype</code>. Les modifications apportées à l'objet prototype sont propagées sur toutes les instances de <code>Intl.Collator</code> via l'héritage (chaîne de prototypes).</p>
<h2 id="Propriétés">Propriétés</h2>
<dl>
<dt><code>Intl.Collator.protoype.constructor</code></dt>
<dd>Une référence vers {{jsxref("Collator")}}.</dd>
</dl>
<h2 id="Méthodes">Méthodes</h2>
<dl>
<dt>{{jsxref("Collator.compare", "Intl.Collator.prototype.compare")}}</dt>
<dd>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")}}.</dd>
<dt>{{jsxref("Collator.resolvedOptions", "Intl.Collator.prototype.resolvedOptions()")}}</dt>
<dd>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.</dd>
</dl>
<h2 id="Spécifications">Spécifications</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="col">Spécification</th>
<th scope="col">Statut</th>
<th scope="col">Commentaires</th>
</tr>
<tr>
<td>{{SpecName('ES Int 1.0', '#sec-10.2.1', 'Intl.Collator.prototype')}}</td>
<td>{{Spec2('ES Int 1.0')}}</td>
<td>Définition initiale.</td>
</tr>
<tr>
<td>{{SpecName('ES Int 2.0', '#sec-10.2.1', 'Intl.Collator.prototype')}}</td>
<td>{{Spec2('ES Int 2.0')}}</td>
<td> </td>
</tr>
<tr>
<td>{{SpecName('ES Int Draft', '#sec-Intl.Collator.prototype', 'Intl.Collator.prototype')}}</td>
<td>{{Spec2('ES Int Draft')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2>
<p>{{Compat("javascript.builtins.Intl.Collator.prototype")}}</p>
<h2 id="Voir_aussi">Voir aussi</h2>
<ul>
<li>{{jsxref("Collator", "Intl.Collator")}}</li>
</ul>
|