Y
Hacker News
new
|
ask
|
show
|
jobs
by
badman_ting
4519 days ago
Ah, but what is the value of 'this' when those handler functions are called?
1 comments
epidemian
4519 days ago
Arrow functions preserve the 'this' of their enclosing context:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
:)
link