Hacker News new | ask | show | jobs
by pornel 4181 days 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.