Search posts, tags, users, and pages
What are JS Generators? Generators are a feature in Javascript which are basically functions that are kind of like iterators. Creating You can create generators like this: function* myGenerator() {} The * after function is required. Yielding The cor...
shadowtime2000
@shadowtime2000
I program
If you are looking at this you are probably wondering who I am.
Markdown supported · ⌘↵ to post
Todd
I've been curious for some time now about generators. They seem incredibly powerful; yet I've never used them IRL. What are some real-world use cases for generators?
I believe they are mainly for readable iterators.
Todd
I've been curious for some time now about generators. They seem incredibly powerful; yet I've never used them IRL. What are some real-world use cases for generators?