The type of elements produced by the generator function.
The type of the generator function, which returns an IterableIterator<T>.
A generator function that returns an IterableIterator<T>.
An object implementing Iterable<T> and a toJSON method for serialization.
Wraps a generator function to provide an iterable object with additional functionality.
The returned object implements the
Iterableprotocol using the provided generator function, and also provides atoJSONmethod that returns all generated values as an array, meaning that JSON.stringify will work as expected.