Twitter | Search | |
Sagiv Ben Giat
Arrow functions are not mutating "this" and keep it static. Meaning it will point to whatever it was in the surrounding context, global in your case. I wrote a post about "this" in depth with a nice flow-chart, might help 🙂
Follow these 6 rules to determine what “this” is bound to.
Reply Retweet Like More
Replying to