DEV Community

Discussion on: Arrow Function vs Function

Collapse
 
piyush1104 profile image
Piyush Bansal

Can't we just get this info from 'event.target'?

Thread Thread
 
sshymko profile image
Sergii Shymko

Good point. That's true for DOM events, but not in general case of arbitrary callback.