{"json_modified": "2015-11-30T07:47:19.201673", "slug": "Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["Guide", "guide", "JavaScript"], "locale": "ja", "title": "\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf", "translations": [{"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": "2015-10-21T13:11:24", "review_tags": []}, {"title": "\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668", "url": "/zh-CN/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": [], "summary": "\u5904\u7406\u4e00\u4e2a\u96c6\u5408\u4e2d\u6bcf\u4e00\u9879\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
\u548c for each
\u5faa\u73af\u81f3 map()\uff0c
filter()
\u00a0\u548c\u00a0array comprehensions\u3002\u00a0\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668\uff0c\u5728 JavaScript 1.7 \u4e2d, \u8fed\u4ee3\u5668\u7684\u6982\u5ff5\u5c5e\u4e8e\u6838\u5fc3\u8bed\u8a00\u4e2d\u7684\u91cd\u70b9\uff0c\u5e76\u63d0\u4f9b\u4e86\u4e00\u79cd\u673a\u5236\u6765\u5b9a\u4e49 for...of\u00a0
\u5faa\u73af\u3002", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-09-28T06:39:24", "review_tags": []}, {"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": []}, {"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": "2015-10-21T13:29:26", "review_tags": []}, {"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": "2015-10-28T03:30:16", "review_tags": []}, {"title": "Iterators and generators", "url": "/es/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["Gu\u00eda", "Intermedio", "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()
, filter()
Y comprensiones de arrays.\u00a0
Los iteradores y los generadores acercan el concepto de iteraci\u00f3n directamente al el n\u00facleo del lenguaje y proporcionan un mecanismo para personalizar el comportamiento de los bucles for...of
.", "localization_tags": ["inprogress"], "locale": "es", "last_edit": "2015-10-07T08:59:21", "review_tags": []}], "modified": "2015-11-30T07:47:17", "label": "\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf", "localization_tags": [], "url": "/ja/docs/Web/JavaScript/Guide/Iterators_and_Generators", "last_edit": "2015-11-30T07:47:10", "summary": "\u8a73\u7d30\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044 :", "sections": [{"id": "Quick_Links", "title": null}, {"id": "Iterators", "title": "\u30a4\u30c6\u30ec\u30fc\u30bf"}, {"id": "Iterables", "title": "\u53cd\u5fa9\u53ef\u80fd"}, {"id": "User-defined_iterables", "title": "\u30e6\u30fc\u30b6\u30fc\u5b9a\u7fa9\u306e\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8"}, {"id": "Built-in_iterables", "title": "\u30d3\u30eb\u30c8\u30a4\u30f3\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8"}, {"id": "Syntaxes_expecting_iterables", "title": "\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u306a\u69cb\u6587"}, {"id": "Generators", "title": "\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf"}, {"id": "\u9ad8\u5ea6\u306a\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf", "title": "\u9ad8\u5ea6\u306a\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf"}], "id": 55199, "review_tags": ["technical", "editorial"]}