3 ms·
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
by the8472 12y 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.