{"json_modified": "2015-04-22T05:39:03.761238", "slug": "Web/JavaScript/Guide/Iteratoren_und_Generatoren", "tags": ["Guide", "Intermediate", "JavaScript"], "locale": "de", "title": "Iteratoren und Generatoren", "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()
, 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": [], "locale": "en-US", "last_edit": "2015-04-22T03:04:28", "review_tags": []}, {"title": "\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf", "url": "/ja/docs/Web/JavaScript/Guide/Iterators_and_Generators", "tags": ["JavaScript"], "summary": "\u96c6\u5408\u4f53\u306e\u5404\u30a2\u30a4\u30c6\u30e0\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u306f\u3001\u3068\u3066\u3082\u4e00\u822c\u7684\u306a\u64cd\u4f5c\u3067\u3059\u3002JavaScript \u306f\u96c6\u5408\u4f53\u306b\u53cd\u5fa9\u51e6\u7406\u3092\u884c\u3046\u65b9\u6cd5\u3092\u3044\u304f\u3064\u304b\u5099\u3048\u3066\u304a\u308a\u3001\u7c21\u5358\u306a for
\u304a\u3088\u3073 for each
\u30eb\u30fc\u30d7\u304b\u3089 map()
\u3001filter()
\u3001\u304a\u3088\u3073\u914d\u5217\u5185\u5305\u307e\u3067\u3042\u308a\u307e\u3059\u3002JavaScript 1.7 \u3067\u5c0e\u5165\u3057\u305f\u30a4\u30c6\u30ec\u30fc\u30bf\u3068\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u306f\u3001\u8a00\u8a9e\u306e\u30b3\u30a2\u90e8\u5206\u306b\u76f4\u63a5\u53cd\u5fa9\u51e6\u7406\u306e\u8003\u3048\u3092\u53d6\u308a\u5165\u308c\u3066\u3001for...in
\u304a\u3088\u3073 for each
\u30eb\u30fc\u30d7\u306e\u52d5\u4f5c\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u4ed5\u7d44\u307f\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002", "localization_tags": [], "locale": "ja", "last_edit": "2014-10-27T02:40:37", "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. JavaScript \u63d0\u4f9b\u4e86\u597d\u51e0\u79cd\u65b9\u6cd5\u6765\u904d\u5386\u4e00\u4e2a\u96c6\u5408, \u4ece\u7b80\u5355\u7684 for
\u548c for each
\u5faa\u73af\u81f3 map()
, filter()
and array comprehensions. \u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668, \u5728 JavaScript 1.7\u4e2d, \u8fed\u4ee3\u5668\u7684\u6982\u5ff5\u5c5e\u4e8e\u6838\u5fc3\u8bed\u8a00\u4e2d\u7684\u91cd\u70b9 \u548c\u63d0\u4f9b\u4e86\u4e00\u79cd\u673a\u5236 \u6765\u5b9a\u4e49 for...in
\u7684\u884c\u4e3aand for each
\u5faa\u73af.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-05-05T23:51:59", "review_tags": []}, {"title": "It\u00e9rateurs et g\u00e9n\u00e9rateurs", "url": "/fr/docs/Web/JavaScript/Guide/iterateurs_et_generateurs", "tags": ["Guide", "Intermediate", "JavaScript"], "summary": "Traiter chaque \u00e9lement d'une liste est une t\u00e2che tr\u00e8s courante. JavaScript offre plusieurs moyens d'it\u00e9rer sur une collection, d'une simple boucle for
ou for each
\u00e0 l'utilisation de map()
, filter()
ou des compr\u00e9hensions de tableau.", "localization_tags": [], "locale": "fr", "last_edit": "2015-01-01T01:16:05", "review_tags": []}], "modified": "2015-04-22T05:38:59", "label": "Iteratoren und Generatoren", "localization_tags": ["inprogress"], "url": "/de/docs/Web/JavaScript/Guide/Iteratoren_und_Generatoren", "last_edit": "2015-04-22T04:20:34", "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.", "sections": [{"id": "Quick_Links", "title": "JavaScript Tutorials: JavaScript Guide Einf\u00fchrung Grammatik und Typen Kontrollfluss und Fehlerbehandlung Schleifen und Iterationen Funktionen Ausdr\u00fccke und Operatoren Zahlen und Zeitangaben Textformatierung Regul\u00e4re Ausdr\u00fccke Indexed collections Keyed collections Mit Objekten arbeiten Feinheiten des Objektmodells Iteratoren und Generatoren Metaprogrammierung Einleitend JavaScript Grundlagen Technologien\u00fcbersicht Einf\u00fchrung in objekt-orientiertes JavaScript Fortgeschritten Eine Wiedereinf\u00fchrung in JavaScript JavaScript Datenstrukturen Vergleiche auf Gleichheit Closures Erweitert Vererbung und Prototypenkette Strict Modus JavaScript Typed-Arrays Memory Management Concurrency Modell und Event-Loop Referenzen: Standardobjekte Globale Objekte Array ArrayBuffer [\u00dcbersetzen] Boolean DataView [\u00dcbersetzen] Date Error [\u00dcbersetzen] EvalError [\u00dcbersetzen] Float32Array [\u00dcbersetzen] Float64Array [\u00dcbersetzen] Function Generator [\u00dcbersetzen] GeneratorFunction [\u00dcbersetzen] Infinity Int16Array [\u00dcbersetzen] Int32Array [\u00dcbersetzen] Int8Array [\u00dcbersetzen] InternalError [\u00dcbersetzen] Intl [\u00dcbersetzen] Intl.Collator [\u00dcbersetzen] Intl.DateTimeFormat [\u00dcbersetzen] Intl.NumberFormat [\u00dcbersetzen] Iterator [\u00dcbersetzen] JSON [\u00dcbersetzen] Map [\u00dcbersetzen] Math NaN Number Object ParallelArray [\u00dcbersetzen] Promise Proxy [\u00dcbersetzen] RangeError [\u00dcbersetzen] ReferenceError [\u00dcbersetzen] Reflect [\u00dcbersetzen] RegExp Set [\u00dcbersetzen] StopIteration [\u00dcbersetzen] String Symbol [\u00dcbersetzen] SyntaxError [\u00dcbersetzen] TypeError [\u00dcbersetzen] TypedArray [\u00dcbersetzen] URIError [\u00dcbersetzen] Uint16Array [\u00dcbersetzen] Uint32Array [\u00dcbersetzen] Uint8Array [\u00dcbersetzen] Uint8ClampedArray [\u00dcbersetzen] WeakMap [\u00dcbersetzen] WeakSet [\u00dcbersetzen] decodeURI() [\u00dcbersetzen] decodeURIComponent() [\u00dcbersetzen] encodeURI() [\u00dcbersetzen] encodeURIComponent() [\u00dcbersetzen] escape() [\u00dcbersetzen] eval() isFinite() isNaN() null parseFloat() parseInt() [\u00dcbersetzen] undefined unescape() [\u00dcbersetzen] uneval() [\u00dcbersetzen] Ausdr\u00fccke & Operatoren Ausdr\u00fccke und Operatoren Arithmetic operators [\u00dcbersetzen] Array comprehensions [\u00dcbersetzen] Assignment operators [\u00dcbersetzen] Bitwise operators [\u00dcbersetzen] Comma operator [\u00dcbersetzen] Comparison operators [\u00dcbersetzen] Conditional (ternary) Operator [\u00dcbersetzen] Destructuring assignment [\u00dcbersetzen] Expression closures [\u00dcbersetzen] Generator comprehensions [\u00dcbersetzen] Grouping operator [\u00dcbersetzen] Legacy generator function expression [\u00dcbersetzen] Logical Operators [\u00dcbersetzen] Objekt Initialisierer Operator precedence [\u00dcbersetzen] Property accessors [\u00dcbersetzen] Spread operator [\u00dcbersetzen] class expression [\u00dcbersetzen] delete operator [\u00dcbersetzen] function expression [\u00dcbersetzen] function* expression [\u00dcbersetzen] in operator [\u00dcbersetzen] instanceof [\u00dcbersetzen] new operator [\u00dcbersetzen] super [\u00dcbersetzen] this [\u00dcbersetzen] typeof [\u00dcbersetzen] void operator [\u00dcbersetzen] yield [\u00dcbersetzen] yield* [\u00dcbersetzen] Anweisungen & Deklarationen Anweisungen und Deklarationen Legacy generator function [\u00dcbersetzen] block break class [\u00dcbersetzen] const continue [\u00dcbersetzen] debugger [\u00dcbersetzen] do...while [\u00dcbersetzen] empty [\u00dcbersetzen] export [\u00dcbersetzen] for [\u00dcbersetzen] for each...in [\u00dcbersetzen] for...in for...of [\u00dcbersetzen] function [\u00dcbersetzen] function* [\u00dcbersetzen] if...else import [\u00dcbersetzen] label [\u00dcbersetzen] let return [\u00dcbersetzen] switch [\u00dcbersetzen] throw [\u00dcbersetzen] try...catch [\u00dcbersetzen] var while [\u00dcbersetzen] with [\u00dcbersetzen] Funktionen Functions Arguments object Arrow functions [\u00dcbersetzen] Default parameters [\u00dcbersetzen] Methoden Definitionen Rest parameters [\u00dcbersetzen] getter [\u00dcbersetzen] setter [\u00dcbersetzen] Klassen Classes [\u00dcbersetzen] constructor [\u00dcbersetzen] extends [\u00dcbersetzen] static [\u00dcbersetzen] Weiteres Lexikalische Grammatik JavaScript Datenstrukturen Enumerability und Ownership von Eigenschaften Protokolle zur Iteration Strict Modus Zum Strict Modus wechseln Template Strings Veraltete Bestandteile Neu in JavaScript Neu in JavaScript ECMAScript 5 support in Mozilla [\u00dcbersetzen] ECMAScript 6 support in Mozilla [\u00dcbersetzen] ECMAScript 7 support in Mozilla [\u00dcbersetzen] Firefox JavaScript changelog [\u00dcbersetzen] New in JavaScript 1.1 [\u00dcbersetzen] New in JavaScript 1.2 [\u00dcbersetzen] New in JavaScript 1.3 [\u00dcbersetzen] New in JavaScript 1.4 [\u00dcbersetzen] Neu in JavaScript 1.5 Neu in JavaScript 1.6 Neu in JavaScript 1.7 New in JavaScript 1.8 New in JavaScript 1.8.1 Neu in JavaScript 1.8.5 Dokumentation: N\u00fctzliche Listen Index aller Seiten Index aller Methoden Index aller Eigenschaften Seiten mit dem Tag \"JavaScript\" Mitmachen Stand der JavaScript-Dokumentation Das MDN-Projekt"}, {"id": "Iterators", "title": "Iterators"}, {"id": "Iterables", "title": "Iterables"}, {"id": "User-defined_iterables", "title": "User-defined iterables"}, {"id": "Built-in_iterables", "title": "Built-in iterables"}, {"id": "Syntaxes_expecting_iterables", "title": "Syntaxes expecting iterables"}, {"id": "Generators", "title": "Generators"}, {"id": "Advanced_generators", "title": "Advanced generators"}, {"id": "Generator_comprehensions", "title": "Generator comprehensions"}], "id": 79959, "review_tags": []}