--- title: 'arguments[@@iterator]()' slug: Web/JavaScript/Reference/Functions/arguments/@@iterator tags: - Functions - JavaScript - Property - arguments translation_of: Web/JavaScript/Reference/Functions/arguments/@@iterator --- <div>{{jsSidebar("Functions")}}</div> <p><strong><code>@@iterator</code></strong> プロパティの初期値は {{jsxref("Array.prototype.values")}} プロパティの初期値と同じ関数オブジェクトです。</p> <h2 id="Syntax" name="Syntax">構文</h2> <pre class="syntaxbox notranslate"><var>arguments</var>[Symbol.iterator]()</pre> <h2 id="Examples" name="Examples">例</h2> <h3 id="Iteration_using_for...of_loop" name="Iteration_using_for...of_loop">for...of ループを用いた反復</h3> <pre class="brush: js notranslate">function f() { // your browser must support for..of loop // and let-scoped variables in for loops for (let letter of arguments) { console.log(letter); } } f('w', 'y', 'k', 'o', 'p'); </pre> <h2 id="Specifications" name="Specifications">仕様書</h2> <table class="standard-table"> <tbody> <tr> <th scope="col">仕様書</th> </tr> </tbody> <tbody> <tr> <td>{{SpecName('ESDraft', '#sec-createunmappedargumentsobject', 'CreateUnmappedArgumentsObject')}}</td> </tr> <tr> <td>{{SpecName('ESDraft', '#sec-createmappedargumentsobject', 'CreateMappedArgumentsObject')}}</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2> <div> <p>{{Compat("javascript.functions.arguments.@@iterator")}}</p> </div> <h2 id="See_also" name="See_also">関連情報</h2> <ul> <li>{{jsxref("Array.prototype.values()")}}</li> </ul>