DEV Community

loading...

Discussion on: Lesser-Known JavaScript Tricks

Collapse
pentacular profile image
pentacular

Every function has an arguments array-like object that contains the value of all arguments passed to the function.

Note that arrow functions do not have an arguments object.

Collapse
bhagatparwinder profile image
Parwinder 👨🏻‍💻 Author

This is such an oversight from me. Thanks for catching it. I wrote a full blog post on arrow functions and how they behave differently with this, new and arguments. I missed it here. I'll update.

Thanks for reading ♥️

Forem Open with the Forem app