2 ms·
Is there any promise-less guide, that helps to grasp the concept of function* and yield in JS?
by k__ 13y ago
Is there any promise-less guide, that helps to grasp the concept of function* and yield in JS?
- Touche 13y agoNot an article, but this is a good library that uses generator functions without promises: https://github.com/visionmedia/co https://github.com/visionmedia/co
- masklinn 13y agoAny 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`)
- k__ 13y agoThe easiest thing to do is probably playing around with it :)