{"json_modified": "2015-05-07T12:26:29.854723", "slug": "Web/JavaScript/Referencia/Iteration_protocols", "tags": ["Iterable", "Intermedio", "Experimental", "Exp\u00e9rimental", "JavaScript", "ECMAScript6", "Iterador"], "locale": "es", "title": "Protocolos de Iteraci\u00f3n", "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-04-26T21:02:02", "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-03T04:01:42", "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": []}], "modified": "2015-05-07T12:26:28", "label": "Protocolos de Iteraci\u00f3n", "localization_tags": [], "url": "/es/docs/Web/JavaScript/Referencia/Iteration_protocols", "last_edit": "2015-05-07T12:26:20", "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.", "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 Memory Management Concurrency model and Event Loop References: Built-in objects Objetos globales Array ArrayBuffer [Traducir] Boolean DataView [Traducir] Date Error EvalError [Traducir] Float32Array [Traducir] Float64Array [Traducir] Function Generator [Traducir] GeneratorFunction [Traducir] Infinity Int16Array [Traducir] Int32Array [Traducir] Int8Array [Traducir] InternalError [Traducir] Intl [Traducir] Intl.Collator [Traducir] Intl.DateTimeFormat [Traducir] Intl.NumberFormat Iterator [Traducir] JSON Map Math NaN Number Object ParallelArray [Traducir] Promesa Proxy [Traducir] RangeError [Traducir] ReferenceError [Traducir] Reflect [Traducir] RegExp SIMD [Traducir] SIMD.float32x4 [Traducir] SIMD.float64x2 [Traducir] SIMD.int16x8 [Traducir] SIMD.int32x4 [Traducir] SIMD.int8x16 [Traducir] Set [Traducir] StopIteration [Traducir] String Symbol [Traducir] SyntaxError [Traducir] TypeError TypedArray [Traducir] URIError [Traducir] Uint16Array [Traducir] Uint32Array [Traducir] Uint8Array [Traducir] Uint8ClampedArray [Traducir] WeakMap WeakSet [Traducir] decodeURI() decodeURIComponent encodeURI encodeURIComponent escape() [Traducir] eval isFinite() isNaN null [Traducir] parseFloat parseInt() undefined unescape() [Traducir] uneval() [Traducir] Expressions & operators Operadores Aritm\u00e9ticos Array comprehensions [Traducir] Assignment operators [Traducir] Bitwise operators [Traducir] Comma operator [Traducir] Comparison operators [Traducir] Conditional (ternary) Operator [Traducir] Destructuring assignment [Traducir] Expression closures [Traducir] Generator comprehensions [Traducir] Grouping operator [Traducir] Legacy generator function expression [Traducir] Logical Operators [Traducir] Object initializer [Traducir] Precedencia de operadores Miembros Spread operator [Traducir] class expression [Traducir] operador delete function function* expression [Traducir] in instanceof new super [Traducir] this typeof void yield [Traducir] yield* [Traducir] Statements & declarations Sentencias Legacy generator function [Traducir] block break class [Traducir] const continue debugger [Traducir] do...while empty [Traducir] export for for each...in for...in for...of [Traducir] function function* [Traducir] if...else import [Traducir] label let [Traducir] return switch [Traducir] throw try...catch var while with [Traducir] Functions Funciones Objeto arguments Arrow functions [Traducir] Default parameters [Traducir] Method definitions [Traducir] Rest parameters [Traducir] get setter [Traducir] Classes Classes constructor [Traducir] extends [Traducir] 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 Novedades en JavaScript ECMAScript 5 support in Mozilla [Traducir] ECMAScript 6 support in Mozilla ECMAScript 7 support in Mozilla [Traducir] Firefox JavaScript changelog [Traducir] New in JavaScript 1.1 [Traducir] New in JavaScript 1.2 [Traducir] New in JavaScript 1.3 [Traducir] New in JavaScript 1.4 [Traducir] Novedades en Javascript 1.5 Novedades en JavaScript 1.6 Novedades en JavaScript 1.7 Novedades en JavaScript 1.8 New in JavaScript 1.8.1 [Traducir] Novedades en JavaScript 1.8.5 Documentation: Useful lists All pages index Methods index Properties index Pages tagged \"JavaScript\" Contribute JavaScript doc status The MDN project"}, {"id": "El_protocolo_iterable", "title": "El protocolo iterable"}, {"id": "El_protocolo_iterador", "title": "El protocolo iterador"}, {"id": "Ejemplos_de_protocolos_de_iteraci.C3.B3n", "title": "Ejemplos de protocolos de iteraci\u00f3n"}, {"id": "Ejemplos_de_iterables", "title": "Ejemplos de iterables"}, {"id": "Iterables_nativos", "title": "Iterables nativos"}, {"id": "Iterables_personalizados", "title": "Iterables personalizados"}, {"id": "APIs_nativas_que_aceptan_iterables", "title": "APIs nativas que aceptan iterables"}, {"id": "Sintaxis_que_espera_un_iterable", "title": "Sintaxis que espera un iterable"}, {"id": "Iterables_mal_definidos", "title": "Iterables mal definidos"}, {"id": "Ejemplos_de_iteradores", "title": "Ejemplos de iteradores"}, {"id": "Iterador_simple", "title": "Iterador simple"}, {"id": "Iterador_infinito", "title": "Iterador infinito"}, {"id": "Con_un_generador", "title": "Con un generador"}, {"id": ".C2.BFUn_objeto_generador_es_un_iterador_o_un_iterable.3F", "title": "\u00bfUn objeto generador es\u00a0un iterador o un\u00a0iterable?"}, {"id": "Especificaciones", "title": "Especificaciones"}, {"id": "Temas_relacionados", "title": "Temas relacionados"}], "id": 149625, "review_tags": []}