Open xjamundx opened 8 years ago
This would be cool, but careful about the differences in scope with this
and arguments
. It might be enough to only run this on functions that don't use either keyword, though if someone uses this
you can't be 100% sure if they're using a this
in another scope or if a scope is bound to the anonymous function.
Anytime we have an anonymous function we can convert to an arrow function