It turns out you can't replace all JavaScript functions with arrow functions because they do completely different things with `this` >_<
-
-
@qntm FWIW you usually don't need arrow methods, as you can just write " method() { return ... } " in an object literal. -
@webbedspace@qntm whaaaaat where is that documented? literally the first time I hear about this - 2 more replies
New conversation -
-
-
@qntm Note the related syntaxes of class methods (`this` is bound to the instance) and concise methods in object literals (same).Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@qntm Okay but fat arrow notation is extremely easy, why do you even need help from Stack Overflow to do it?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
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.