A Quick Introduction to Generator Functions - Yannick Assogba
▻http://clome.info/writing/posts/a-quick-introduction-to-generator-functions
Generator functions are a feature of JavaScript that became part of the standard in ES6/ES2015. While we typically expect a function to run its course to the end once we have invoked it, generator functions allow us to transfer control flow from one portion of our program to another and then come back later.