{"json_modified": "2015-08-26T12:16:10.368965", "slug": "Web/JavaScript/Guide/iterable", "tags": ["JavaScript", "Reference", "Advanced", "R\u00e9f\u00e9rence", "iterables", "ECMAScript6"], "locale": "fr", "title": "iterable", "translations": [{"title": "iterable", "url": "/en-US/docs/Web/JavaScript/Guide/iterable", "tags": ["ECMAScript6", "Experimental", "Iterator", "Exp\u00e9rimental", "JavaScript"], "summary": "One addition of ECMAScript 6 is not new syntax or a new built-in, but a protocol. This protocol can be implemented by any object respecting some conventions.", "localization_tags": [], "locale": "en-US", "last_edit": "2014-12-10T02:27:35", "review_tags": ["technical"]}, {"title": "\u53ef\u8fed\u4ee3\u5bf9\u8c61", "url": "/zh-CN/docs/Web/JavaScript/Guide/iterable", "tags": [], "summary": "The \"iterable\" protocol allows JavaScript objects to define or customize their iteration behavior, such as what values are looped over in a for..of
construct. Some built-in types, such as Array
or Map
, have a default iteration behavior, while other types (such as Object
) do not.", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2014-12-03T17:29:34", "review_tags": []}], "modified": "2015-08-26T12:16:00", "label": "iterable", "localization_tags": [], "url": "/fr/docs/Web/JavaScript/Guide/iterable", "last_edit": "2014-12-08T12:54:36", "summary": "Le protocole it\u00e9rable permet \u00e0 des objets JavaScript de d\u00e9finir le comportement qu'ils auront lorsqu'utilis\u00e9s dans des boucles telles que for..of
. Certains types natifs comme Array
ou Map
, disposent naturellement de fonctionnalit\u00e9s d'it\u00e9rations. D'autres types, comme Object
n'ont pas cette fonctionnalit\u00e9.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Les_protocoles_d'it\u00e9ration", "title": "Les protocoles d'it\u00e9ration"}, {"id": "Le_protocole_\u00ab_it\u00e9rable_\u00bb", "title": "Le protocole \u00ab it\u00e9rable \u00bb"}, {"id": "Le_protocole_it\u00e9rateur_(iterator)", "title": "Le protocole it\u00e9rateur ("}, {"id": "Exemples_sur_les_protocoles_d'it\u00e9ration", "title": "Exemples sur les protocoles d'it\u00e9ration"}, {"id": "Les_it\u00e9rables_natifs", "title": "Les it\u00e9rables natifs"}, {"id": "Les_it\u00e9rables_construits", "title": "Les it\u00e9rables construits"}, {"id": "Les_API_natives_utilisant_les_it\u00e9rables", "title": "Les API natives utilisant les it\u00e9rables"}, {"id": "Les_op\u00e9rateurs_et_syntaxes_utilisant_les_it\u00e9rables", "title": "Les op\u00e9rateurs et syntaxes utilisant les it\u00e9rables"}, {"id": "Les_it\u00e9rables_mal-form\u00e9s", "title": "Les it\u00e9rables mal-form\u00e9s"}, {"id": "Un_g\u00e9n\u00e9rateur_est-il_un_it\u00e9rateur_ou_un_it\u00e9rable", "title": "Un g\u00e9n\u00e9rateur est-il un it\u00e9rateur ou un it\u00e9rable ?"}], "id": 126535, "review_tags": []}