Resetable JavaScript Generators

added by JavaScript Kicks
1/2/2019 9:19:27 AM

208 Views

What if you could re-use a JavaScript generator instance by just calling .reset()? So long as you understand Proxies, with just a few lines of code you can write a wrapper function that...


0 comments