`arguments` is not available in an arrow function
In a function, the arguments
object is an available local variable, demonstrated thusly:
> function normalFn() {console.log(arguments)}
> normalFn()
{}
> normalFn(1)
{ '0': 1 }
But arrow functions don't get the arguments object:
> const arrowFn = () => {console.log(arguments)}
> arrowFn()
ReferenceError: arguments is not defined
Read more here
H/T Thomas Allen
Tweet