2 ms·
In fat arrow functions, the `this` works the same as `arguments`. Both of them use the closest scope/closure which has the variable defined. The `.bind(this)` i
by hajile 11y ago
In fat arrow functions, the `this` works the same as `arguments`. Both of them use the closest scope/closure which has the variable defined. The `.bind(this)` is a good mental approximation, but is actually a little different because the inner scope doesn't actually create ANY `this` variable.
Not having `arguments` isn't a mistake because `...rest` parameters are allowed and are much better in every way.