4 ms·
It's more like function(){}.bind(this) vs () => {} And for a single expression the `{}` are optional and a `return` is implied, which is pretty nic
by pornel 12y ago
It's more like
function(){}.bind(this)
vs
() => {}
And for a single expression the `{}` are optional and a `return` is implied, which is pretty nice for .map()/.sort(), etc.
Automatically bound `this` is super important. It's very easy to forget one `.bind(this)` (or `that` alias) somewhere, especially when you have several levels of callback nesting.