I’m super not embarrassed to admit that I just learned:
ES6 arrow functions do not have their own `this`. They inherit `this` for free without having to do `.bind` or `self = this`. 
-
-
foo = () => { // this is the same kind of scope, right? // what's missing are some identifiers like `this`, `super`, etc };
-
That’s what I mean. IMHO it’s just easier to think of it the other way around instead of remembering those four exceptions.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
Those, and `this`, are not special-cased or anything — it’s just that arrow functions don’t create a new function scope.