This is the new arrow syntax of ES6. It differs by the treatment of this: function gets a this according to the calling context (traditional semantics), but the arrow functions keep the this of the context of definition.
this
function
see http://tc39wiki.calculist.org/es6/arrow-functions/
2.1m questions
2.1m answers
60 comments
57.0k users