The Power of JavaScript Generators

This talk explores how JavaScript generators work, what makes them so powerful, and why you should care. Generators have been around in JavaScript since ES2015, yet they remain largely ignored by many JavaScript devs, who don’t see why or how they’d use them in their day-to-day work. But JavaScript generators – which we can think of as special functions whose execution can be “paused” and resumed later on – are actually extremely powerful tools for producing and consuming series of data. That makes them perfect for implementing lazy sequences, custom iterables, animation, even the convenient asynchronous programming we now enjoy with “await”!

Video producer: https://jsheroes.io/

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.