From bf8e099b9c8b3c60d60b3712b4fc97b052c39887 Mon Sep 17 00:00:00 2001 From: julieng Date: Tue, 3 Aug 2021 08:03:23 +0200 Subject: convert content to md --- .../functions/arguments/@@iterator/index.md | 65 +++++++--------------- 1 file changed, 20 insertions(+), 45 deletions(-) (limited to 'files/fr/web/javascript/reference/functions/arguments/@@iterator') diff --git a/files/fr/web/javascript/reference/functions/arguments/@@iterator/index.md b/files/fr/web/javascript/reference/functions/arguments/@@iterator/index.md index 406eb7bcdc..e6f4715714 100644 --- a/files/fr/web/javascript/reference/functions/arguments/@@iterator/index.md +++ b/files/fr/web/javascript/reference/functions/arguments/@@iterator/index.md @@ -11,19 +11,20 @@ tags: translation_of: Web/JavaScript/Reference/Functions/arguments/@@iterator original_slug: Web/JavaScript/Reference/Fonctions/arguments/@@iterator --- -
{{jsSidebar("Functions")}}
+{{jsSidebar("Functions")}} -

La valeur initiale de la propriété @@iterator est le même objet que la fonction utilisée pour la valeur initiale de la propriété {{jsxref("Array.prototype.values")}}.

+La valeur initiale de la propriété **`@@iterator`** est le même objet que la fonction utilisée pour la valeur initiale de la propriété {{jsxref("Array.prototype.values")}}. -

Syntaxe

+## Syntaxe -
arguments[Symbol.iterator]()
+ arguments[Symbol.iterator]() -

Exemples

+## Exemples -

Utiliser une boucle for...of

+### Utiliser une boucle `for...of` -
function f() {
+```js
+function f() {
   // votre environnement doit supporter les
   // boucles for..of et les variables
   // définies avec let dans les boucles
@@ -32,47 +33,21 @@ original_slug: Web/JavaScript/Reference/Fonctions/arguments/@@iterator
   }
 }
 f('w', 'y', 'k', 'o', 'p');
-
+``` -

Spécifications

+## Spécifications - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SpécificationStatutCommentaires
{{SpecName('ES6', '#sec-createunmappedargumentsobject', ' CreateUnmappedArgumentsObject')}}{{Spec2('ES6')}}Définition initiale.
{{SpecName('ES6', '#sec-createmappedargumentsobject', ' CreateMappedArgumentsObject')}}{{Spec2('ES6')}}Définition initiale.
{{SpecName('ESDraft', '#sec-createunmappedargumentsobject', 'CreateUnmappedArgumentsObject')}}{{Spec2('ESDraft')}} 
{{SpecName('ESDraft', '#sec-createmappedargumentsobject', 'CreateMappedArgumentsObject')}}{{Spec2('ESDraft')}} 
+| Spécification | Statut | Commentaires | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------- | -------------------- | +| {{SpecName('ES6', '#sec-createunmappedargumentsobject', ' CreateUnmappedArgumentsObject')}} | {{Spec2('ES6')}} | Définition initiale. | +| {{SpecName('ES6', '#sec-createmappedargumentsobject', ' CreateMappedArgumentsObject')}} | {{Spec2('ES6')}} | Définition initiale. | +| {{SpecName('ESDraft', '#sec-createunmappedargumentsobject', 'CreateUnmappedArgumentsObject')}} | {{Spec2('ESDraft')}} |   | +| {{SpecName('ESDraft', '#sec-createmappedargumentsobject', 'CreateMappedArgumentsObject')}} | {{Spec2('ESDraft')}} |   | -

Compatibilité des navigateurs

+## Compatibilité des navigateurs +{{Compat("javascript.functions.arguments.@@iterator")}} -

{{Compat("javascript.functions.arguments.@@iterator")}}

+## Voir aussi -

Voir aussi

- - +- {{jsxref("Array.prototype.values()")}} -- cgit v1.2.3-54-g00ecf