Name
arguments[ ] — an array of function arguments
Synopsis
arguments
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.
Get JavaScript: The Definitive Guide, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.