{"json_modified": "2015-06-03T19:54:11.359811", "slug": "Web/JavaScript/Reference/Iteration_protocols", "tags": ["Iterable", "Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Intermediate", "Iterator"], "locale": "ja", "title": "Iteration protocols", "translations": [{"title": "Iteration protocols", "url": "/en-US/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": ["Iterable", "Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Intermediate", "Iterator"], "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": "2015-05-17T05:21:53", "review_tags": []}, {"title": "\u8fed\u4ee3\u5668\u534f\u8bae", "url": "/zh-CN/docs/Web/JavaScript/Reference/Iteration_protocols", "tags": [], "summary": "ES6 \u91cc\u7684\u8fed\u4ee3\u5668\u5e76\u4e0d\u662f\u4e00\u79cd\u65b0\u7684\u8bed\u6cd5\u6216\u8005\u662f\u65b0\u7684\u5185\u7f6e\u5bf9\u8c61(\u6784\u9020\u51fd\u6570), \u800c\u662f\u4e00\u79cd\u534f\u8bae (protocol). \u6240\u6709\u9075\u5faa\u4e86\u8fd9\u4e2a\u534f\u8bae\u7684\u5bf9\u8c61\u90fd\u53ef\u4ee5\u79f0\u4e4b\u4e3a\u8fed\u4ee3\u5668\u5bf9\u8c61.\u00a0", "localization_tags": [], "locale": "zh-CN", "last_edit": "2015-04-18T01:00:20", "review_tags": []}, {"title": "Les protocoles d'it\u00e9ration", "url": "/fr/docs/Web/JavaScript/Reference/Les_protocoles_iteration", "tags": ["Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Intermediate", "Iterator"], "summary": "Un des \u00e9l\u00e9ments ajout\u00e9s par ECMAScript 6 n'est ni une nouvelle syntaxe ni un nouvel objet natif mais un protocole. Ce protocole peut \u00eatre impl\u00e9ment\u00e9 par n'importe quel objet qui respecte certaines conventions.", "localization_tags": [], "locale": "fr", "last_edit": "2015-05-17T08:48:27", "review_tags": []}, {"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": "2015-04-22T07:05:25", "review_tags": []}, {"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": []}], "modified": "2015-06-03T19:54:08", "label": "Iteration protocols", "localization_tags": ["inprogress"], "url": "/ja/docs/Web/JavaScript/Reference/Iteration_protocols", "last_edit": "2015-06-03T19:53:59", "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", "sections": [{"id": "Quick_Links", "title": "JavaScript Tutorials: JavaScript Guide Introduction Grammar and types Control flow and error handling Loops and iteration Functions Expressions and operators Numbers and dates Text formatting Regular expressions Indexed collections Keyed collections Working with objects Details of the object model Iterators and generators Meta programming Introductory JavaScript basics JavaScript technologies overview Introduction to Object Oriented JavaScript Intermediate A re-introduction to JavaScript JavaScript data structures Equality comparisons and sameness Closures Advanced Inheritance and the prototype chain Strict mode JavaScript typed arrays SIMD types Memory Management Concurrency model and Event Loop References: Built-in objects Global Objects Array ArrayBuffer Boolean DataView Date Error EvalError Float32Array Float64Array Function Generator GeneratorFunction Infinity Int16Array Int32Array Int8Array InternalError Intl Intl.Collator Intl.DateTimeFormat Intl.NumberFormat Iterator JSON Map Math NaN Number Object ParallelArray Promise Proxy RangeError ReferenceError Reflect RegExp SIMD SIMD.float32x4 SIMD.float64x2 SIMD.int16x8 SIMD.int32x4 SIMD.int8x16 Set StopIteration String Symbol SyntaxError TypeError TypedArray URIError Uint16Array Uint32Array Uint8Array Uint8ClampedArray WeakMap WeakSet decodeURI() decodeURIComponent() encodeURI() encodeURIComponent() escape() eval() isFinite() isNaN() null parseFloat() parseInt() undefined unescape() uneval() Expressions & operators \u6f14\u7b97\u5b50 \u7b97\u8853\u6f14\u7b97\u5b50 Array comprehensions [Translate] \u4ee3\u5165\u6f14\u7b97\u5b50 \u30d3\u30c3\u30c8\u6f14\u7b97\u5b50 \u30ab\u30f3\u30de\u6f14\u7b97\u5b50 \u6bd4\u8f03\u6f14\u7b97\u5b50 \u6761\u4ef6\u6f14\u7b97\u5b50 Destructuring assignment [Translate] Expression closures [Translate] Generator comprehensions [Translate] Grouping operator [Translate] Legacy generator function expression [Translate] \u8ad6\u7406\u6f14\u7b97\u5b50 Object initializer [Translate] \u6f14\u7b97\u5b50\u306e\u512a\u5148\u9806\u4f4d \u30e1\u30f3\u30d0\u30fc\u6f14\u7b97\u5b50 Spread operator [Translate] class expression delete function function* expression in instanceof new super this typeof \u6f14\u7b97\u5b50 void \u6f14\u7b97\u5b50 yield yield* Statements & declarations \u6587 Legacy generator function [Translate] \u30d6\u30ed\u30c3\u30af break class const continue debugger do...while empty [Translate] export for for each...in for...in for...of function function* if...else import label let return switch throw try...catch var while with Functions \u95a2\u6570\u3068\u95a2\u6570\u30b9\u30b3\u30fc\u30d7 arguments \u30a2\u30ed\u30fc\u95a2\u6570 Default parameters [Translate] Method definitions Rest parameters get set Classes Classes constructor extends static Misc Lexical grammar JavaScript data structures Enumerability and ownership of properties Iteration protocols Strict mode Transitioning to strict mode Template strings Deprecated features New in JavaScript JavaScript \u306e\u65b0\u6a5f\u80fd Mozilla \u306b\u304a\u3051\u308b ECMAScript 5 \u306e\u30b5\u30dd\u30fc\u30c8 Mozilla \u306b\u304a\u3051\u308b ECMAScript 6 \u306e\u30b5\u30dd\u30fc\u30c8 Mozilla \u306b\u304a\u3051\u308b ECMAScript 7 \u306e\u30b5\u30dd\u30fc\u30c8 Firefox JavaScript changelog [Translate] JavaScript 1.1 \u306e\u65b0\u6a5f\u80fd New in JavaScript 1.2 [Translate] JavaScript 1.3 \u306e\u65b0\u6a5f\u80fd JavaScript 1.4 \u306e\u65b0\u6a5f\u80fd JavaScript 1.5 \u306e\u65b0\u6a5f\u80fd JavaScript 1.6 \u306e\u65b0\u6a5f\u80fd JavaScript 1.7 \u306e\u65b0\u6a5f\u80fd JavaScript 1.8 \u306e\u65b0\u6a5f\u80fd JavaScript 1.8.1 \u306e\u65b0\u6a5f\u80fd JavaScript 1.8.5 \u306e\u65b0\u6a5f\u80fd Documentation: Useful lists All pages index Methods index Properties index Pages tagged \"JavaScript\" Contribute JavaScript doc status The MDN project"}, {"id": "iterable_protocol", "title": "iterable protocol"}, {"id": "iterator_protocol", "title": "iterator protocol"}, {"id": ".E4.BE.8B.3A_iteration_protocols.E3.82.92.E4.BD.BF.E3.81.86", "title": "\u4f8b: iteration protocols\u3092\u4f7f\u3046"}, {"id": ".E5.8F.8D.E5.BE.A9.E3.81.AE.E4.BE.8B", "title": "\u53cd\u5fa9\u306e\u4f8b"}, {"id": ".E3.83.93.E3.83.AB.E3.83.88.E3.82.A4.E3.83.B3.E3.81.AE.E5.8F.8D.E5.BE.A9.E5.8F.AF.E8.83.BD.E3.82.AA.E3.83.96.E3.82.B8.E3.82.A7.E3.82.AF.E3.83.88", "title": "\u30d3\u30eb\u30c8\u30a4\u30f3\u306e\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8"}, {"id": ".E3.83.A6.E3.83.BC.E3.82.B6.E5.AE.9A.E7.BE.A9.E5.8F.8D.E5.BE.A9.E5.8F.AF.E8.83.BD.E3.82.AA.E3.83.96.E3.82.B8.E3.82.A7.E3.82.AF.E3.83.88", "title": "\u30e6\u30fc\u30b6\u5b9a\u7fa9\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8"}, {"id": ".E5.8F.8D.E5.BE.A9.E5.8F.AF.E8.83.BD.E3.82.AA.E3.83.96.E3.82.B8.E3.82.A7.E3.82.AF.E3.83.88.E3.82.92.E5.8F.97.E3.81.91.E5.85.A5.E3.82.8C.E3.82.8B.E7.B5.84.E3.81.BF.E8.BE.BC.E3.81.BFAPI", "title": "\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u53d7\u3051\u5165\u308c\u308b\u7d44\u307f\u8fbc\u307fAPI"}, {"id": ".E5.8F.8D.E5.BE.A9.E5.8F.AF.E8.83.BD.E3.82.AA.E3.83.96.E3.82.B8.E3.82.A7.E3.82.AF.E3.83.88.E3.82.92.E6.9C.9F.E5.BE.85.E3.81.99.E3.82.8B.E6.A7.8B.E6.96.87", "title": "\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u671f\u5f85\u3059\u308b\u69cb\u6587"}, {"id": ".E9.9D.9E.E6.95.B4.E5.BD.A2.E5.8F.8D.E5.BE.A9.E5.8F.AF.E8.83.BD.E3.82.AA.E3.83.96.E3.82.B8.E3.82.A7.E3.82.AF.E3.83.88", "title": "\u975e\u6574\u5f62\u53cd\u5fa9\u53ef\u80fd\u30aa\u30d6\u30b8\u30a7\u30af\u30c8"}, {"id": ".E3.82.A4.E3.83.86.E3.83.AC.E3.83.BC.E3.82.BF.E3.81.AE.E4.BE.8B", "title": "\u30a4\u30c6\u30ec\u30fc\u30bf\u306e\u4f8b"}, {"id": ".E7.B0.A1.E5.8D.98.E3.81.AA.E3.82.A4.E3.83.86.E3.83.AC.E3.83.BC.E3.82.BF", "title": "\u7c21\u5358\u306a\u30a4\u30c6\u30ec\u30fc\u30bf"}, {"id": ".E7.84.A1.E9.99.90.E3.81.AE.E3.82.A4.E3.83.86.E3.83.AC.E3.83.BC.E3.82.BF", "title": "\u7121\u9650\u306e\u30a4\u30c6\u30ec\u30fc\u30bf"}, {"id": ".E3.82.B8.E3.82.A7.E3.83.8D.E3.83.AC.E3.83.BC.E3.82.BF.E3.81.A8.E3.81.A8.E3.82.82.E3.81.AB", "title": "\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u3068\u3068\u3082\u306b"}, {"id": ".E3.82.B8.E3.82.A7.E3.83.8D.E3.83.AC.E3.83.BC.E3.82.BF.E3.81.AF.E3.80.81.E3.82.A4.E3.83.86.E3.83.AC.E3.83.BC.E3.82.BF.E3.81.BE.E3.81.9F.E3.81.AF.E5.8F.8D.E5.BE.A9.E5.8F.AF.E8.83.BD.E3.81.AA.E3.82.AA.E3.83.96.E3.82.B8.E3.82.A7.E3.82.AF.E3.83.88.E3.81.A7.E3.81.99.E3.81.8B.EF.BC.9F", "title": "\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf\u306f\u3001\u30a4\u30c6\u30ec\u30fc\u30bf\u307e\u305f\u306f\u53cd\u5fa9\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3067\u3059\u304b\uff1f"}, {"id": ".E4.BB.95.E6.A7.98", "title": "\u4ed5\u69d8"}, {"id": ".E9.96.A2.E9.80.A3.E6.83.85.E5.A0.B1", "title": "\u95a2\u9023\u60c5\u5831"}], "id": 152345, "review_tags": ["editorial"]}