
Things Coming Down the Pipe From TC39 - JSJ 590
JavaScript Jabber
00:00
How to Create a Custom Iterator
A lot of other programming languages, by the way, have their own. iterator, libraries and implementations. So what's a use case for creating your own custom iterators? Well, if you're creating some sort of collection or sequence,. it's just a really nice way of encapsulating iteration. You can theoretically create your own data structures if you want. But like I said, most people just don't do it.
Transcript
Play full episode