Top "Arrow-functions" questions

Questions about the compact function syntax in ECMAScript2015 (ES6) called "arrow functions" because of their use of "=>".

Syntax for async arrow function

I can mark a javascript function as "async" (i.e. returning a promise) with the async keyword. Like this: async …

javascript promise async-await arrow-functions
What's the meaning of "=>" (an arrow formed from equals & greater than) in JavaScript?

I know that the >= operator means more than or equal to, but I've seen => in some source code. …

javascript syntax ecmascript-6 arrow-functions
Are 'Arrow Functions' and 'Functions' equivalent / interchangeable?

Arrow functions in ES2015 provide a more concise syntax. Can I replace all my function declarations / expressions with arrow functions …

javascript ecmascript-6 arrow-functions
ECMAScript 6 arrow function that returns an object

When returning an object from an arrow function, it seems that it is necessary to use an extra set of {} …

javascript ecmascript-6 arrow-functions
What do multiple arrow functions mean in javascript?

I have been reading a bunch of react code and I see stuff like this that I don't understand: handleChange = …

javascript ecmascript-6 arrow-functions
When should I use Arrow functions in ECMAScript 6?

The question is directed at people who have thought about code style in the context of the upcoming ECMAScript 6 (Harmony) …

javascript lambda ecmascript-6 ecmascript-harmony arrow-functions
How to use arrow functions (public class fields) as class methods?

I'm new to using ES6 classes with React, previously I've been binding my methods to the current object (show in …

javascript arrow-functions ecmascript-next class-fields
How do I write a named arrow function in ES2015?

I have a function that I am trying to convert to the new arrow syntax in ES6. It is a …

javascript ecmascript-6 arrow-functions
Can I use ES6's arrow function syntax with generators? (arrow notation)

ie how do I express this: function *(next) {} with arrow syntax. I've tried all the combinations I could think of, …

javascript ecmascript-6 generator arrow-functions
ES6 immediately invoked arrow function

Why does this work in a Node.js console (tested in 4.1.1 and 5.3.0) but doesn't work in the browser (tested in …

javascript node.js arrow-functions