Name
Function.arguments[] — arguments passed to a function
Availability
deprecated
Synopsis
function
.
arguments
[
i
]
function
.
arguments
.
length
Description
The arguments
property of a
Function object is an array of the arguments that are passed to a
function. It is defined only while the function is executing.
arguments.length
specifies the
number of elements in the array.
This property is deprecated in favor of the Arguments object; it should never be used in new JavaScript code.
See Also
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.