@@iterator 속성의 초기값은 Array.prototype.values 속성의 초기값과 같은 함수 객체입니다.

구문

arguments[Symbol.iterator]()

예제

for...of 반복문을 사용한 반복

function f() {
  // 브라우저가 for...of 반복문과
  // for 반복문 안의 let 범위의 변수를 지원해야 합니다.
  for (let letter of arguments) {
    console.log(letter);
  }
}
f('w', 'y', 'k', 'o', 'p');

명세

Specification Status Comment
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of ' CreateUnmappedArgumentsObject' in that specification.
Standard 초기 정의.
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of ' CreateMappedArgumentsObject' in that specification.
Standard 초기 정의.
ECMAScript Latest Draft (ECMA-262)
The definition of 'CreateUnmappedArgumentsObject' in that specification.
Draft  
ECMAScript Latest Draft (ECMA-262)
The definition of 'CreateMappedArgumentsObject' in that specification.
Draft  

브라우저 호환성

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
Basic supportChrome Full support 52Edge ? Firefox Full support 46IE No support NoOpera Full support YesSafari Full support 9WebView Android Full support 52Chrome Android Full support 52Edge Mobile ? Firefox Android Full support 46Opera Android Full support YesSafari iOS Full support 9Samsung Internet Android Full support 6.0nodejs Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

같이 보기

문서 태그 및 공헌자

이 페이지의 공헌자: vividhee
최종 변경자: vividhee,