Generator - JavaScript | MDN

The Generator object is returned by a generator function and it conforms to both the iterable protocol and the iterator protocol.