{"json_modified": "2015-04-17T00:28:48.429053", "slug": "Web/JavaScript/Reference/Statements/for...of", "tags": ["ECMAScript6", "JavaScript Reference", "NeedsBrowserCompatibility", "JavaScript"], "locale": "ja", "title": "for...of", "translations": [{"title": "for...of", "url": "/en-US/docs/Web/JavaScript/Reference/Statements/for...of", "tags": ["Statement", "ECMAScript6", "Experimental", "Exp\u00e9rimental", "JavaScript"], "summary": "The <strong><code>for...of</code> statement </strong>creates a loop Iterating over <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">iterable objects</a> (including <a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array\" title=\"The JavaScript Array global object is a constructor for arrays, which are high-level, list-like objects.\"><code>Array</code></a>,\u00a0<a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map\" title=\"The Map object is a simple key/value map. Any value (both objects and primitive values) may be used as either a key or a value.\"><code>Map</code></a>, <a href=\"/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set\" title=\"The Set object lets you store unique values of any type, whether primitive values or object references.\"><code>Set</code></a>,\u00a0<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a>\u00a0object and so on), invoking a custom iteration hook with statements to be executed for the value of each distinct property.", "localization_tags": [], "locale": "en-US", "last_edit": "2015-04-12T05:27:12", "review_tags": []}, {"title": "for...of", "url": "/zh-CN/docs/Web/JavaScript/Reference/Statements/for...of", "tags": [], "summary": "\u8be5\u8bed\u53e5\u7528\u6765\u904d\u5386\u4e00\u4e2a\u53ef\u8fed\u4ee3\u5bf9\u8c61(\u5305\u62ec<a href=\"../Global_Objects/Array\">\u6570\u7ec4</a>,\u7c7b\u6570\u7ec4\u5bf9\u8c61,<a href=\"../../../../../zh-cn/JavaScript/Guide/Iterators_and_Generators\" title=\"Iterators and generators\">\u8fed\u4ee3\u5668\u548c\u751f\u6210\u5668 </a>),\u9488\u5bf9\u6bcf\u4e2a\u5c5e\u6027\u7684\u5c5e\u6027\u503c,\u8c03\u7528\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684\u8bed\u53e5\u5757.", "localization_tags": [], "locale": "zh-CN", "last_edit": "2014-05-05T23:51:55", "review_tags": []}, {"title": "for...of", "url": "/fr/docs/Web/JavaScript/Reference/Instructions/for...of", "tags": ["Reference", "JavaScript", "Experimental", "R\u00e9ference", "R\u00e9f\u00e9rence", "Exp\u00e9rimental", "Statement", "ECMAScript6"], "summary": "L'<strong>instruction <code>for...of</code></strong> permet de cr\u00e9er une boucle qui parcourt un <a href=\"/fr/docs/Web/JavaScript/Reference/Les_protocoles_iteration#Le_protocole_.C2.AB_it.C3.A9rable_.C2.BB\" title=\"Un des &#xE9;l&#xE9;ments ajout&#xE9;s par ECMAScript 6 n'est ni une nouvelle syntaxe ni un nouvel objet natif mais un protocole. Ce protocole peut &#xEA;tre impl&#xE9;ment&#xE9; par n'importe quel objet qui respecte certaines conventions.\">objet it\u00e9rable</a> (ce qui inclue les objets <a href=\"/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array\" title=\"Les objets globaux Array sont des constructeurs pour tableaux, qui sont des objets de haut-niveau (en termes de complexit&#xE9; homme-machine) et qui sont semblables &#xE0; des listes.\"><code>Array</code></a>, <a href=\"/fr/docs/Web/JavaScript/Reference/Objets_globaux/Map\" title=\"L'objet&#xA0;Map repr&#xE9;sente un dictionnaire, autrement dit une carte de cl&#xE9;s/valeurs. N'importe quelle valeur valable en JavaScript (que ce soit les objets ou les valeurs de types primitifs) peut &#xEA;tre utilis&#xE9;e comme cl&#xE9; ou comme valeur.\"><code>Map</code></a>, <a href=\"/fr/docs/Web/JavaScript/Reference/Objets_globaux/Set\" title=\"L'objet Set (Ensemble en fran&#xE7;ais) permet de stocker des valeurs uniques, de n'importe quel type, que ce soit des valeurs d'un type primitif ou des objets.\"><code>Set</code></a>, l'objet <a href=\"/fr/docs/Web/JavaScript/Reference/Fonctions/arguments\" title=\"L'objet arguments est un objet, semblable &#xE0; un tableau, correspondant aux arguments pass&#xE9;s &#xE0; une fonction.\"><code>arguments</code></a>, etc.) et qui permet d'ex\u00e9cuter une instruction pour la valeur de chaque propri\u00e9t\u00e9.", "localization_tags": [], "locale": "fr", "last_edit": "2015-04-13T13:02:30", "review_tags": []}, {"title": "for...of", "url": "/ru/docs/Web/JavaScript/Reference/Statements/for...of", "tags": ["ECMAScript6", "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440", "\u042d\u043a\u0441\u043f\u0435\u0440\u0438\u043c\u0435\u043d\u0442\u0430\u043b\u044c\u043d\u044b\u0439", "JavaScript"], "summary": "\u041e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u00a0<code>for...of</code>\u00a0\u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u0442 \u0446\u0438\u043a\u043b \u043e\u0431\u0445\u043e\u0434\u0430\u00a0<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">\u0438\u0442\u0435\u0440\u0438\u0440\u0443\u0435\u043c\u044b\u0445 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432</a>\u00a0(\u0432\u043a\u043b\u044e\u0447\u0430\u044f <a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Array\" title=\"&#x413;&#x43B;&#x43E;&#x431;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x439; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442; JavaScript Array&#xA0;&#x2014; &#x44D;&#x442;&#x43E; &#x43A;&#x43E;&#x43D;&#x441;&#x442;&#x440;&#x443;&#x43A;&#x442;&#x43E;&#x440; &#x434;&#x43B;&#x44F; &#x43C;&#x430;&#x441;&#x441;&#x438;&#x432;&#x43E;&#x432;, &#x43A;&#x43E;&#x442;&#x43E;&#x440;&#x44B;&#x435; &#x43D;&#x430; &#x432;&#x44B;&#x441;&#x43E;&#x43A;&#x43E;&#x43C; &#x443;&#x440;&#x43E;&#x432;&#x43D;&#x435; &#x43F;&#x440;&#x435;&#x434;&#x441;&#x442;&#x430;&#x432;&#x43B;&#x44F;&#x44E;&#x442; &#x441;&#x43E;&#x431;&#x43E;&#x439; &#x441;&#x43F;&#x438;&#x441;&#x43A;&#x43E;&#x43F;&#x43E;&#x434;&#x43E;&#x431;&#x43D;&#x44B;&#x435; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B;.\"><code>Array</code></a>,\u00a0<a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Map\" title=\"&#x41E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#xA0;Map&#xA0;&#x44F;&#x432;&#x43B;&#x44F;&#x435;&#x442;&#x441;&#x44F; &#x43F;&#x440;&#x43E;&#x441;&#x442;&#x44B;&#x43C; &#x430;&#x441;&#x441;&#x43E;&#x446;&#x438;&#x430;&#x442;&#x438;&#x432;&#x43D;&#x44B;&#x43C; &#x43C;&#x430;&#x441;&#x441;&#x438;&#x432;&#x43E;&#x43C;. &#x41B;&#x44E;&#x431;&#x44B;&#x435; &#x442;&#x438;&#x43F;&#x44B; (&#x43A;&#x430;&#x43A; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B;, &#x442;&#x430;&#x43A; &#x438; &#x43F;&#x440;&#x438;&#x43C;&#x438;&#x442;&#x438;&#x432;&#x44B;) &#x43C;&#x43E;&#x433;&#x443;&#x442; &#x431;&#x44B;&#x442;&#x44C; &#x438;&#x441;&#x43F;&#x43E;&#x43B;&#x44C;&#x437;&#x43E;&#x432;&#x430;&#x43D;&#x44B; &#x432; &#x43A;&#x430;&#x447;&#x435;&#x441;&#x442;&#x432;&#x435; &#x43A;&#x43B;&#x44E;&#x447;&#x430; &#x438;&#x43B;&#x438; &#x437;&#x43D;&#x430;&#x447;&#x435;&#x43D;&#x438;&#x44F;.\"><code>Map</code></a>, <a href=\"/ru/docs/Web/JavaScript/Reference/Global_Objects/Set\" title=\"&#x41E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x44B;&#xA0;Set &#x43F;&#x43E;&#x437;&#x432;&#x43E;&#x43B;&#x44F;&#x44E;&#x442; &#x432;&#x430;&#x43C; &#x441;&#x43E;&#x445;&#x440;&#x430;&#x43D;&#x44F;&#x442;&#x44C; &#x443;&#x43D;&#x438;&#x43A;&#x430;&#x43B;&#x44C;&#x43D;&#x44B;&#x435; &#x437;&#x43D;&#x430;&#x447;&#x435;&#x43D;&#x438;&#x44F; &#x43B;&#x44E;&#x431;&#x43E;&#x433;&#x43E; &#x442;&#x438;&#x43F;&#x430;, &#x43A;&#x430;&#x43A; &#x43F;&#x440;&#x438;&#x43C;&#x438;&#x442;&#x438;&#x432;&#x44B;, &#x442;&#x430;&#x43A; &#x438; &#x434;&#x440;&#x443;&#x433;&#x438;&#x435; &#x442;&#x438;&#x43F;&#x44B; &#x43E;&#x431;&#x44A;&#x435;&#x43A;&#x442;&#x43E;&#x432;.\"><code>Set</code></a>, \u043e\u0431\u044a\u0435\u043a\u0442\u00a0<a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">\u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432</a>\u00a0\u0438 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445), \u0432\u044b\u0437\u044b\u0432\u0430\u044f \u043d\u0430 \u043a\u0430\u0436\u0434\u043e\u043c \u0448\u0430\u0433\u0435 \u0438\u0442\u0435\u0440\u0430\u0446\u0438\u0438 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u044b \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0438\u0437 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u044b\u0445 \u0441\u0432\u043e\u0439\u0441\u0442\u0432 \u043e\u0431\u044a\u0435\u043a\u0442\u0430.", "localization_tags": [], "locale": "ru", "last_edit": "2014-11-19T12:11:50", "review_tags": ["editorial"]}, {"title": "for...of", "url": "/ca/docs/Web/JavaScript/Reference/Statements/for...of", "tags": [], "summary": "La instrucci\u00f3 <code>for...of</code> crea un bucle que itera sobre <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/iterable\">objectes iterables</a> (incloent <a href=\"/ca/docs/Web/JavaScript/Referencia/Array\" title=\"Aquesta p&#xE0;gina encara no ha estat tradu&#xEF;da. Si us plau consideri contribuir-hi!\"><code>Array</code></a>,\u00a0<a href=\"/ca/docs/Web/JavaScript/Referencia/Map\" title=\"Aquesta p&#xE0;gina encara no ha estat tradu&#xEF;da. Si us plau consideri contribuir-hi!\"><code>Map</code></a>, <a href=\"/ca/docs/Web/JavaScript/Referencia/Set\" title=\"Aquesta p&#xE0;gina encara no ha estat tradu&#xEF;da. Si us plau consideri contribuir-hi!\"><code>Set</code></a>, l'objecte <a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions_and_function_scope/arguments\">arguments</a>, etc\u00e8tera), tot invocant un bloc de codi amb les instruccions a executar per a cada valor de la propietat.", "localization_tags": [], "locale": "ca", "last_edit": "2015-03-02T13:22:15", "review_tags": []}], "modified": "2015-04-17T00:28:45", "label": "for...of", "localization_tags": [], "url": "/ja/docs/Web/JavaScript/Reference/Statements/for...of", "last_edit": "2015-04-17T00:28:39", "summary": "\u53cd\u5fa9\u51e6\u7406\u53ef\u80fd\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8 (<a href=\"/ja/docs/JavaScript/Reference/Global_Objects/Array\" title=\"Array\">Array</a>\u3001Array \u306b\u985e\u4f3c\u3059\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3001<a href=\"/ja/docs/JavaScript/Guide/Iterators_and_Generators\" title=\"Iterators and generators\">\u30a4\u30c6\u30ec\u30fc\u30bf\u3084\u30b8\u30a7\u30cd\u30ec\u30fc\u30bf</a>\u3092\u542b\u3080) \u306b\u53cd\u5fa9\u51e6\u7406\u3092\u884c\u3044\u3001\u5404\u3005\u306e\u30d7\u30ed\u30d1\u30c6\u30a3\u306e\u5024\u306b\u5bfe\u3057\u3066\u5b9f\u884c\u3059\u308b\u6587\u3068\u3068\u3082\u306b\u72ec\u81ea\u306e\u53cd\u5fa9\u51e6\u7406\u306e\u30d5\u30c3\u30af\u3092\u547c\u3073\u51fa\u3057\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 Memory Management Concurrency model and Event Loop References: Built-in objects Global Objects Array ArrayBuffer Boolean DataView Date Error EvalError Float32Array Float64Array Function Generator [Translate] GeneratorFunction [Translate] Infinity Int16Array Int32Array Int8Array InternalError [Translate] Intl [Translate] Intl.Collator [Translate] Intl.DateTimeFormat [Translate] Intl.NumberFormat [Translate] Iterator [Translate] JSON Map Math NaN Number Object ParallelArray Promise Proxy RangeError ReferenceError Reflect [Translate] RegExp Set [Translate] StopIteration [Translate] String Symbol [Translate] SyntaxError TypeError TypedArray URIError Uint16Array Uint32Array Uint8Array Uint8ClampedArray [Translate] WeakMap WeakSet [Translate] decodeURI() decodeURIComponent() encodeURI() encodeURIComponent() escape() eval() isFinite() isNaN() null parseFloat() parseInt() undefined unescape() [Translate] 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 [Translate] delete function function* expression [Translate] in instanceof new super [Translate] this typeof \u6f14\u7b97\u5b50 void \u6f14\u7b97\u5b50 yield yield* [Translate] Statements & declarations \u6587 Legacy generator function [Translate] \u30d6\u30ed\u30c3\u30af break class [Translate] const continue debugger [Translate] 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 [Translate] Rest parameters [Translate] get set Classes Classes [Translate] constructor [Translate] extends [Translate] static [Translate] 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 ECMAScript 7 support in Mozilla [Translate] 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": "Syntax", "title": "\u69cb\u6587"}, {"id": "Examples", "title": "\u4f8b"}, {"id": "Browser_compatibility", "title": "\u30d6\u30e9\u30a6\u30b6\u5b9f\u88c5\u72b6\u6cc1"}, {"id": "See_also", "title": "\u95a2\u9023\u60c5\u5831"}], "id": 79703, "review_tags": []}