It turns out you can't replace all JavaScript functions with arrow functions because they do completely different things with `this` >_<
@SchiefGelaufen It was correct until arrow functions. "`this` is the object whose method was just called. No object? `this` is `window`"
-
-
@qntm Modulo `bind` and `apply` and friends. Oh and of course in strict mode you get `undefined` instead of `window` if there’s no object. -
@qntm I mean, points to TC39 for trying to clean things up, but sadly there are still a couple decades of APIs designed for what came before
End of conversation
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.