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`. 
-
-
Replying to @zachleat
The same thing goes for `arguments`, `super`, and `http://new.target `
Those, and `this`, are not special-cased or anything — it’s just that arrow functions don’t create a new function scope.2 replies 2 retweets 14 likes -
and `prototype`
1 reply 0 retweets 0 likes -
-
var a = () => {}; a.prototype; // undefined var b = function() {} b.prototype; // blah blah
1 reply 0 retweets 1 like -
Replying to @angustweets @zachleat
Right. I was listing keywords or special-cased identifiers you’d use within an arrow function.
1 reply 0 retweets 0 likes -
yeah I belatedly realized that, my bad!
1 reply 0 retweets 0 likes
Replying to @angustweets @zachleat
No, it’s interesting! I just read it as “here’s one more special keyword” and was like z0mgwtf :)
8:33 AM - 7 Dec 2017
0 replies
0 retweets
3 likes
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.