Next: , Up: ES2015   [Index]


4.1 Arrow Functions

Arrows are a function shorthand using the => syntax.

They support both expression and statement bodies.

Arrows share the same lexical ‘this’ as their surrounding code.

If an arrow is inside another function, it shares the "arguments" variable of its parent function.