Accessing Arguments To A Function
Last updated
Was this helpful?
Last updated
Was this helpful?
The arguments
object is available within any JavaScript function. It is an array-like object with all of the arguments to the function. Even if not all of the arguments are referenced in the function signature, they can still be accessed via the arguments
object.
See the on MDN for more details.
h/t Dorian Karter