Understanding how to use Symbol.iterator in JavaScript/TypeScript
Symbol.iterator can be used to initialize the iterator. If you need to go back to the first element after the iterator goes forward, it's the right place to use it. This post shows the example.