5to6 / ideas

ideas for es5 to es6 transformers
3 stars 1 forks source link

Fat Arrows #4

Open xjamundx opened 9 years ago

xjamundx commented 9 years ago

Probably you should have some more fat arrows

rauchg commented 9 years ago

We could consider converting something like:

this.on('event', function(){ }.bind(this))

to

this.on('event', () => { })

Provided the only parameter passed to bind is the keyword this, and that the function is not named?