{"json_modified": "2016-08-04T20:18:05.754329", "uuid": "f20be39f-ad66-4195-b7ec-e2683625fb53", "title": "\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668", "url": "/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": [], "translations": [{"uuid": "6bb3e9df-8582-420b-a33e-799c6a502a07", "title": "Iterators and generators", "url": "/en-US/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["Guide", "Intermediate", "JavaScript"], "summary": "Processing each of the items in a collection is a very common operation. JavaScript provides a number of ways of iterating over a collection, from simple for
loops to map()
and filter()
. Iterators and Generators bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...of
loops.", "localization_tags": [], "locale": "en-US", "last_edit": "2016-01-05T10:22:52", "review_tags": []}, {"uuid": "019b9773-568a-4517-aafc-5b9e58690666", "title": "\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf", "url": "/ja/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["Guide", "JavaScript"], "summary": "\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044 :", "localization_tags": [], "locale": "ja", "last_edit": "2015-11-30T07:47:10", "review_tags": ["technical", "editorial"]}, {"uuid": "3a61caf0-ed6e-4021-9d13-3bfa75152f07", "title": "Iteratoren und Generatoren", "url": "/de/docs/Web/JavaScript/Guide/Iteratoren_und_Generatoren", "tags": ["Guide", "Intermediate", "JavaScript"], "summary": "Processing each of the items in a collection is a very common operation. JavaScript provides a number of ways of iterating over a collection, from simple for
loops to map()
, filter()
and array comprehensions. Iterators and Generators bring the concept of iteration directly into the core language and provide a mechanism for customizing the behavior of for...of
loops.", "localization_tags": ["inprogress"], "locale": "de", "last_edit": "2015-04-22T04:20:34", "review_tags": []}, {"uuid": "b9259803-8805-41cf-b977-70d698101ff4", "title": "It\u00e9rateurs et g\u00e9n\u00e9rateurs", "url": "/fr/docs/Web/JavaScript/Guide/iterateurs_et_generateurs", "tags": ["Guide", "Intermediate", "JavaScript"], "summary": "Effectuer des traitements sur chacun des \u00e9l\u00e9ments d'une collection est une op\u00e9ration tr\u00e8s fr\u00e9quente. Il existe plusieurs outils natifs dans JavaScript pour parcourir une collection, les boucles for
, map()
, filter()
. Les it\u00e9rateurs et les g\u00e9n\u00e9rateurs font de ce concept d'it\u00e9ration une fonctionnalit\u00e9 principale du langage et permettent d'adapter et de personnaliser le comportement des boucles for...of
.", "localization_tags": [], "locale": "fr", "last_edit": "2016-05-20T05:29:30", "review_tags": []}, {"uuid": "80895706-ce57-4f10-8bf9-f0e0ae731feb", "title": "\u0418\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b", "url": "/ru/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": [], "summary": "\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0435\u0441\u044c\u043c\u0430 \u0440\u0430\u0441\u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0435\u043d\u043d\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439. JavaScript \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438, \u043e\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0446\u0438\u043a\u043b\u0430\u00a0for
\u00a0\u0434\u043e\u00a0map()
, filter()
\u0438 array comprehensions. \u0418\u0442\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0438 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0432\u043d\u0435\u0434\u0440\u044f\u044e\u0442 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u043f\u0435\u0440\u0435\u0431\u043e\u0440\u0430 \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0432 \u044f\u0434\u0440\u043e \u044f\u0437\u044b\u043a\u0430\u00a0\u0438 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u044e\u0442 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u044f\u00a0for...of
\u0446\u0438\u043a\u043b\u043e\u0432.", "localization_tags": ["inprogress"], "locale": "ru", "last_edit": "2016-06-22T23:39:54", "review_tags": []}, {"uuid": "41806dee-3f4e-4fce-b900-58ccc1df1c9b", "title": "Iterators and generators", "url": "/es/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["Intermedio", "Gu\u00eda", "JavaScript"], "summary": "Procesar cada uno de los elementos en una colecci\u00f3n es un tipo de operaci\u00f3n muy com\u00fan. JavaScript proporciona diversas formas de iterar a trav\u00e9s de los elementos de una colecci\u00f3n, desde simples bucles for
hasta
map()
, y\u00a0filter()
.\u00a0
Los iteradores y los generadores acercan el concepto de iteraci\u00f3n directamente al\u00a0n\u00facleo del lenguaje y proporcionan un mecanismo para personalizar el comportamiento de los bucles for...of
.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2016-06-06T19:10:40", "review_tags": []}, {"uuid": "8fc23c54-0860-41d4-a80e-afcf0c064912", "title": "Iteratores e geradores", "url": "/pt-BR/docs/Web/JavaScript/Guide/Iteratores_e_geradores", "tags": ["Intermediario", "Iteradores", "Guia", "Generators", "JavaScript"], "summary": "Processar cada item em uma cole\u00e7\u00e3o \u00e9 uma opera\u00e7\u00e3o muito comum, trivial. JavaScript disponibiliza uma s\u00e9rie de maneiras de iterar\u00a0sobre uma cole\u00e7\u00e3o, de um simples la\u00e7o for
, at\u00e9 um map()
e tamb\u00e9m com o filter()
. Iteradores e Geradores trazem o conceito\u00a0da\u00a0intera\u00e7\u00e3o ocorrer diretamente no n\u00facleo da linguagem e prover um mecanismo para a customiza\u00e7\u00e3o do comportamneto de la\u00e7os\u00a0for...of
.", "localization_tags": ["inprogress"], "locale": "pt-BR", "last_edit": "2016-07-28T07:20:27", "review_tags": []}, {"uuid": "fdec308f-d573-4aec-926a-6d4c2835681a", "title": "\ubc18\ubcf5\uae30 \ubc0f \uc0dd\uc131\uae30", "url": "/ko/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["Guide", "Intermediate", "JavaScript"], "summary": "\uceec\ub809\uc158 \ub0b4 \uac01 \ud56d\ubaa9 \ucc98\ub9ac\ub294 \ub9e4\uc6b0 \ud754\ud55c \uc5f0\uc0b0\uc785\ub2c8\ub2e4. JavaScript\ub294 \uac04\ub2e8\ud55c for
\ub8e8\ud504\uc5d0\uc11c map()
\ubc0f filter()
\uc5d0 \uc774\ub974\uae30\uae4c\uc9c0, \uceec\ub809\uc158\uc744 \ubc18\ubcf5\ud558\ub294 \ub9ce\uc740 \ubc29\ubc95\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \ubc18\ubcf5\uae30(iterator) \ubc0f \uc0dd\uc131\uae30(generator)\ub294 \ubc18\ubcf5 \uac1c\ub150\uc744 \ud575\uc2ec \uc5b8\uc5b4 \ub0b4\ub85c \ubc14\ub85c \uac00\uc838\uc640 for...of
\ub8e8\ud504\uc758 \ub3d9\uc791(behavior)\uc744 \uc0ac\uc6a9\uc790 \uc815\uc758\ud558\ub294 \uba54\ucee4\ub2c8\uc998\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.", "localization_tags": [], "locale": "ko", "last_edit": "2016-07-20T07:29:22", "review_tags": []}], "modified": "2016-08-04T20:18:03", "label": "\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668", "localization_tags": [], "locale": "zh-CN", "id": 59395, "last_edit": "2016-08-04T20:17:56", "summary": "\u5bf9\u96c6\u5408\u4e2d\u7684\u4efb\u610f\u9879\u8fdb\u884c\u5904\u7406\u662f\u5f88\u5e38\u89c1\u7684\u64cd\u4f5c\u3002JavaScript \u63d0\u4f9b\u4e86\u597d\u51e0\u79cd\u65b9\u6cd5\u6765\u904d\u5386\u4e00\u4e2a\u96c6\u5408\uff0c\u4ece\u7b80\u5355\u7684 for
\u00a0 \u5faa\u73af\u81f3 map()\u548c
filter()
\u3002\u00a0\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668\u5c06\u8fed\u4ee3\u7684\u6982\u5ff5\u7eb3\u5165\u7684javascritp\u7684\u6838\u5fc3\u8bed\u8a00\u4e2d\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u79cd\u81ea\u5b9a\u4e49 for...of\u00a0
\u5faa\u73af\u4f53\u7684\u673a\u5236 \u3002", "sections": [{"id": "Quick_Links", "title": null}, {"id": "\u8fed\u4ee3\u5668", "title": "\u8fed\u4ee3\u5668"}, {"id": "\u5b9a\u4e49\u81ea\u5b9a\u4e49\u8fed\u4ee3\u5668", "title": "\u5b9a\u4e49\u81ea\u5b9a\u4e49\u8fed\u4ee3\u5668"}, {"id": "\u751f\u6210\u5668\uff08Generators\uff09_\u4e00\u4e2a\u66f4\u597d\u7684\u65b9\u6cd5\u6765\u6784\u5efa\u904d\u5386\u5668", "title": "\u751f\u6210\u5668\uff08Generators\uff09: \u4e00\u4e2a\u66f4\u597d\u7684\u65b9\u6cd5\u6765\u6784\u5efa\u904d\u5386\u5668"}, {"id": "\u9ad8\u7ea7\u751f\u6210\u5668", "title": null}, {"id": "\u751f\u6210\u5668\u8868\u8fbe\u5f0f", "title": "\u751f\u6210\u5668\u8868\u8fbe\u5f0f"}], "slug": "Web/JavaScript/Guide/Iterators_and_Generators", "review_tags": []}