Great question! I believe this is because arrow functions can't be bound and also don't have arguments, for that we need to use regular function definitions:
Software Engineer at InVision. Full-Stack JavaScript dev, with passion for front-end development.
Psytrance DJ on weekends, playing in local clubs (yeah, that means: Goa Parties!) :D
Great question! I believe this is because arrow functions can't be bound and also don't have
arguments
, for that we need to use regularfunction
definitions:You can't bind anything to an arrow functions
this
. But you can bind arguments to them. ie:would work.
Oh nice! Thanks for explaining that.