Can I use ES6’s arrow function syntax with generators? (arrow notation)

That is, how do I express

function *(next) {}

with arrow syntax? I’ve tried all the combinations I could think of, and I can’t find any documentation on it.

(I am currently using Node.js v0.11.14.)

7 Answers
7

Leave a Comment