MENU
Simplest Iterable
str = 'hello world';
iterator = str[Symbol.iterator]();
iterator.next();
// ...
iterator.next();
iterator.next();StringIterator {}
gives `h`
gives `d`
gives `undefined` as no more string left.
str = 'hello world';
iterator = str[Symbol.iterator]();
iterator.next();
// ...
iterator.next();
iterator.next();