4 ms·
> does it serve any other benefit Yes, as stated in the linked article: > arrow functions don't define this or arguments in their bodies, instead capturing t
by nacs 11y ago
> does it serve any other benefit
Yes, as stated in the linked article:
> arrow functions don't define this or arguments in their bodies, instead capturing these values from the environment
Also:
https://hacks.mozilla.org/2015/06/es6-in-depth-arrow-functions/ https://hacks.mozilla.org/2015/06/es6-in-depth-arrow-functio...