arguments[@@iterator]()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

@@iterator プロパティの初期値は Array.prototype.values プロパティの初期値と同じ関数オブジェクトです。

構文

js
arguments[Symbol.iterator]();

for...of ループを用いた反復処理

js
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");

仕様書

Specification
ECMAScript® 2025 Language Specification
# sec-createunmappedargumentsobject
ECMAScript® 2025 Language Specification
# sec-createmappedargumentsobject

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
Node.js
[Symbol.iterator]

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

関連情報