1. 5
    Delegate JavaScript (ES6) generator iteration control
    1m 48s

Delegate JavaScript (ES6) generator iteration control

InstructorMax Stoiber

Share this video with your friends

Send Tweet

We can execute generators from generators, and delegate the iteration control with the yield* keyword.

Yo dawg, I heard you like generators, so I put generators inside your generators.

Vamshi
~ 8 years ago

Can you help me understand how 3 was consoled out when we returned only 4?

Anshuman
~ 7 years ago

Because of the

yield 3

line in create3To4Counter()

Dash
~ 7 years ago

When in the world would we ever use this?