generatorToArray
Converts the output of a generator function to an array.
- Use the spread operator (
...) to convert the output of the generator function to an array.
Converts the output of a generator function to an array.
...) to convert the output of the generator function to an array.