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/
1.4m articles
1.4m replys
5 comments
57.0k users