5 ms·
Regarding your last point, this is also a nice benefit of for...of loops in JS, where you can use yield and await. It's sort of the best of both worlds.
by mdeltito 9y ago
Regarding your last point, this is also a nice benefit of for...of loops in JS, where you can use yield and await. It's sort of the best of both worlds.
- hdhzy 9y agoOh yes, exactly! I wonder why for of was not mentioned in the article...