diff options
Diffstat (limited to 'files/fr/web/javascript/reference/objets_globaux/object/count/index.html')
| -rw-r--r-- | files/fr/web/javascript/reference/objets_globaux/object/count/index.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/files/fr/web/javascript/reference/objets_globaux/object/count/index.html b/files/fr/web/javascript/reference/objets_globaux/object/count/index.html new file mode 100644 index 0000000000..03dfa86bde --- /dev/null +++ b/files/fr/web/javascript/reference/objets_globaux/object/count/index.html @@ -0,0 +1,42 @@ +--- +title: Object.prototype.__count__ +slug: Web/JavaScript/Reference/Objets_globaux/Object/count +tags: + - JavaScript + - Object + - Obsolete + - Propriété + - Prototype + - Reference +translation_of: Archive/Web/JavaScript/Object.count +--- +<div>{{JSRef}}{{Non-standard_Header}}{{obsolete_header("gecko2")}}</div> + +<p>La propriété <strong><code>__count__</code></strong> était utilisée pour compter les propriétés énumérables d'un objet mais a été retiréee.</p> + +<h2 id="Syntaxe">Syntaxe</h2> + +<pre class="syntaxbox"><var>obj</var>.__count__</pre> + +<h2 id="Exemples">Exemples</h2> + +<pre class="brush: js">{ 1: 1 }.__count__ // 1 +[].__count__ // 0 +[1].__count__ // 1 +[1, /* trou */, 2, 3].__count__ // 3</pre> + +<h2 id="Spécifications">Spécifications</h2> + +<p>Cette propriété n'appartient à aucune spécification.</p> + +<h2 id="Compatibilité_des_navigateurs">Compatibilité des navigateurs</h2> + +<div class="hidden">Le tableau de compatibilité de cette page a été généré à partir de données structurées. Si vous souhaitez contribuer à ces données, n'hésitez pas à consulter <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> et à nous envoyer une <em>pull request</em>.</div> + +<p>{{Compat("javascript.builtins.Object.count")}}</p> + +<h2 id="Voir_aussi">Voir aussi</h2> + +<ul> + <li><a class="external" href="http://whereswalden.com/2010/04/06/more-changes-coming-to-spidermonkey-the-magical-__count__-property-of-objects-is-being-removed/">[Billet de blog] More changes coming to SpiderMonkey: the magical __count__ property is being removed</a> (en anglais)</li> +</ul> |
