DEV Community

Discussion on: Is `this` in Javascript bad?

Collapse
 
dmfay profile image
Dian Fay

It's sneaky. I've wasted a decent amount of time and effort due to forgetting that this isn't bound in fat-arrow functions, or having a different binding than I expect at whatever point in the code. I still like using this, but I'm not sure I could mount a bulletproof defense of it.