Hacker News new | ask | show | jobs
by the8472 4209 days ago
es6 arrow functions preserve the lexical context for this, alternatively you can bind functions to the current this so it remains the same as the outer function scope.

strict mode + arrow functions bring a little more sanity to JS.