Re:How JavaScript Works: deep dive into call, apply, and bind
by cunthorpe on Saturday July 10, 2021 @08:05AM
(#27792800)
Untechnically speaking: Arrow functions preserve the `this` in their declaration point, whereas regular functions change `this` if they're called as methods.
Since the intention is often to keep `this` to refer to the class, people have been binding every single method in the class constructor, but this is no longer necessary thanks to arrow functions.
[ Parent
| on HN ]
There are no comments on this comment yet.