JavaScript: The Definitive Guide

24.2. arguments[ ]: an array of function arguments

ECMAScript v1

24.2.1. Synopsis

arguments

24.2.2. Description

The arguments[] array is defined only within a function body. Within the body of a function, arguments refers to the Arguments object for the function. This object has numbered properties and serves as an array containing all arguments passed to the function. The arguments identifier is essentially a local variable automatically declared and initialized within every function. It refers to an Arguments object only within the body of a function and is undefined in global code.

24.2.3. See Also

Arguments; Chapter 8

Категории