JavaScript Developer — Hard
Key points
- The spread operator `...` is used to convert the generator object into an array.
- Only the yielded values are included in the array.
- The `return` statement in the generator function does not affect the output.
Ready to go further?
Related questions
