I\'ve been experimenting with ES6 for a while now, and I\'ve just come to a slight problem.
I really like using arrow functions, and whenever I can, I use them.
For years, js developers struggled with context binding, asked why this
changed in javascript, so much confusion over the years due to context binding and the difference between the meaning of this
in javascript and this
in most of the other OOP languages.
All this leads me to ask, why, why! why would you wan't to rebind an arrow function! Those where created specially to solve all this issues and confusions and avoid having to use bind
or call
or whatever other way to preserve the scope of the function.
TL;DR
No, you cannot rebind arrow functions.