2 ms·
Not only that, but in the future when async/await lands (or right now if you are willing to compile and can put up with potential breakage), for-of becomes a go
by Klathmon 10y ago
Not only that, but in the future when async/await lands (or right now if you are willing to compile and can put up with potential breakage), for-of becomes a godsend.
The lack of inner functions means that you can await during part of a loop without a bunch of fuckery with the inner function with forEach.