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.)
arrow-functionsecmascript-6generatorjavascriptsyntax
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.)
Best Answer
You can't. Sorry.
According to MDN
From a spec document (my emphasis):