{"json_modified": "2016-10-06T03:58:42.421850", "uuid": "cb4c6971-a84a-4cca-b619-d2ae5fe1c3f0", "title": "Iteration protocols", "url": "/en-US/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": ["ECMAScript6", "Intermediate", "Iterable", "Iterator", "JavaScript"], "translations": [{"uuid": "06fbfb75-df26-4c10-9d74-de5ffa5a94dc", "title": "Protocolos de Iteraci\u00f3n", "url": "/es/docs/Web/JavaScript/Referencia/Iteration_protocols", "tags": ["Iterable", "Intermedio", "Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Iterador"], "summary": "El protocolo\u00a0iterable\u00a0le permite a\u00a0los objetos en\u00a0JavaScript definir o personalizar su comportamiento de iteraci\u00f3n, como por ejemplo\u00a0qu\u00e9\u00a0valores son\u00a0iterados dentro de una sentencia\u00a0for..of. Algunos objetos nativos, como\u00a0Array o Map, tienen un comportamiento de iteraci\u00f3n por defecto, mientras otros objetos (como por ejemplo Object) no.", "localization_tags": [], "locale": "es", "last_edit": "2015-05-07T12:26:20", "review_tags": []}, {"uuid": "c0fcaea3-382e-426b-b335-a5cbb53f45d3", "title": "Les protocoles d'it\u00e9ration", "url": "/fr/docs/Web/JavaScript/Reference/Les_protocoles_iteration", "tags": ["R\u00e9f\u00e9rence", "ECMAScript6", "Interm\u00e9diaire", "Iterator", "JavaScript"], "summary": "Un des ajouts \u00e0 ECMAScript 2015 (ES6) n'est ni une nouvelle syntaxe ni un nouvel objet natif mais des protocoles. Ces protocoles peuvent \u00eatre impl\u00e9ment\u00e9s par n'importe quel objet qui respecte certaines conventions.", "localization_tags": [], "locale": "fr", "last_edit": "2016-10-06T03:58:26", "review_tags": []}, {"uuid": "48f24385-4c3c-44b8-8254-f3181be0cf2d", "title": "Iteration protocols", "url": "/ja/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": ["Iterable", "Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Intermediate", "Iterator"], "summary": "ECMAScript\u7b2c\uff16\u7248\u306e\u3044\u305a\u308c\u304b\u306b\u52a0\u3048\u3066\u3001\u65b0\u3057\u3044\u69cb\u6587\u3084\u65b0\u3057\u3044\u30d3\u30eb\u30c8\u30a4\u30f3\u3067\u306f\u306a\u304f\u3001\u30d7\u30ed\u30c8\u30b3\u30eb\u3067\u3059\u3002\u3053\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u306f\u3044\u304f\u3064\u304b\u306e\u898f\u5247\u3092\u5c0a\u91cd\u3059\u308b\u4efb\u610f\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306b\u3088\u3063\u3066\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002", "localization_tags": ["inprogress"], "locale": "ja", "last_edit": "2015-06-03T19:53:59", "review_tags": ["editorial"]}, {"uuid": "cec47409-37c9-4bc0-b6a4-808b0411d16f", "title": "Iteration protocols", "url": "/ko/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": [], "summary": "ECMAScript 2015 (ES6) \uc758 \ud55c \uac00\uc9c0 \ucd94\uac00 \uc0ac\ud56d\uc740 \uc0c8\ub85c\uc6b4 \ubb38\ubc95\uc774\ub098 built-in \uc774 \uc544\ub2c8\ub77c, protocol \uc785\ub2c8\ub2e4. \uc774 protocol \uc740 \uc77c\uc815 \uaddc\uce59\ub9cc \ucda9\uc871\ud55c\ub2e4\uba74 \uc5b4\ub5a0\ud55c\u00a0\uac1d\uccb4\uc5d0 \uc758\ud574\uc11c\ub3c4 \uad6c\ud604\ub420 \uc218 \uc788\uc2b5\ub2c8\ub2e4.", "localization_tags": ["inprogress"], "locale": "ko", "last_edit": "2016-07-19T03:11:48", "review_tags": []}, {"uuid": "8e1eca09-ee6d-434b-8fc3-833f0e965262", "title": "The Iterator protocol", "url": "/ru/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": [], "summary": "\u041e\u0434\u043d\u043e \u0438\u0437 \u043d\u043e\u0432\u043e\u0432\u0432\u0435\u0434\u0435\u043d\u0438\u0439 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0430 ECMAScript 6 - \u043f\u0440\u043e\u0442\u043e\u043a\u043e\u043b\u044b \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u044b \u043b\u044e\u0431\u044b\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u043c, \u0441\u043e\u0431\u043b\u044e\u0434\u0430\u044f \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u0430.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2016-05-08T13:39:26", "review_tags": []}, {"uuid": "68f2d95b-7476-4802-8dd4-d5ee1aa511ec", "title": "\u8fed\u4ee3\u534f\u8bae", "url": "/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": [], "summary": "\u4f5c\u4e3a ECMAScript 2015 (ES6)\u65b0\u589e\u52a0\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u4e0d\u662f\u65b0\u8bed\u6cd5\u6216\u4e00\u4e2a\u65b0\u7684\u5185\u7f6e\u5bf9\u8c61\uff0c\u800c\u662f\u4e00\u79cd\u534f\u8bae(protocol)\u3002\u8fd9\u79cd\u534f\u8bae\u80fd\u88ab\u4efb\u4f55\u9075\u5faa\u67d0\u4e9b\u7ea6\u5b9a\u7684\u5bf9\u8c61\u5b9e\u73b0\u3002", "localization_tags": ["inprogress"], "locale": "zh-CN", "last_edit": "2016-09-01T19:23:40", "review_tags": []}], "modified": "2016-10-06T02:42:58", "label": "Iteration protocols", "localization_tags": [], "locale": "en-US", "id": 87867, "last_edit": "2016-10-06T02:42:47", "summary": "A couple of additions to ECMAScript 2015 (ES6) aren't new built-ins or syntax, but protocols. These protocols can be implemented by any object respecting some conventions.", "sections": [{"id": "Quick_Links", "title": null}, {"id": "The_iterable_protocol", "title": "The iterable protocol"}, {"id": "The_iterator_protocol", "title": "The iterator protocol"}, {"id": "Examples_using_the_iteration_protocols", "title": "Examples using the iteration protocols"}, {"id": "Iterable_examples", "title": "Iterable examples"}, {"id": "Builtin_iterables", "title": "Builtin iterables"}, {"id": "User-defined_iterables", "title": "User-defined iterables"}, {"id": "Builtin_APIs_accepting_iterables", "title": "Builtin APIs accepting iterables"}, {"id": "Syntaxes_expecting_iterables", "title": "Syntaxes expecting iterables"}, {"id": "Non-well-formed_iterables", "title": "Non-well-formed iterables"}, {"id": "Iterator_examples", "title": "Iterator examples"}, {"id": "Simple_iterator", "title": "Simple iterator"}, {"id": "Infinite_iterator", "title": "Infinite iterator"}, {"id": "With_a_generator", "title": "With a generator"}, {"id": "Is_a_generator_object_an_iterator_or_an_iterable", "title": "Is a generator object an iterator or an iterable?"}, {"id": "Browser_compatibility", "title": "Browser compatibility"}, {"id": "Firefox-specific_notes", "title": "Firefox-specific notes"}, {"id": "IteratorResult_object_returned_instead_of_throwing", "title": null}, {"id": "Iterator_property_and_iterator_symbol", "title": null}, {"id": "Specifications", "title": "Specifications"}, {"id": "See_also", "title": "See also"}], "slug": "Web/JavaScript/Reference/Iteration_protocols", "review_tags": []}