https://techtalkbook.com/javascript-generators-and-how-it-works/
JavaScript Generator and how it works.