DEV Community

Discussion on: Relax, JS `this` is damn easy.

Collapse
 
smlka profile image
Andrey Smolko

I would say that this is easy only for arrow functions=)
Actually, not only for event handlers, but for some other APIs (e.g. setTimeout) where you pass a callback this may be set by own rules (I have a small post about that)