Re:What does `return function *(){…}` mean in JavaScript?
by k__ on Thursday November 07, 2013 @08:57AM
(#6689278)
Is there any promise-less guide, that helps to grasp the concept of function* and yield in JS?
[ Parent
| on HN ]
Re:What does `return function *(){…}` mean in JavaScript?
by masklinn on Thursday November 07, 2013 @11:36AM
(#6690348)
Any generator guide for Python will work, the syntax is slightly different (no function/def, the generator is "created" by the presence of a `yield` keyword in the body, and `yield*` is called `yield from`)
Re:What does `return function *(){…}` mean in JavaScript?
by k__ on Friday November 08, 2013 @09:59AM
(#6696379)
The easiest thing to do is probably playing around with it :)