I dislike this. If you want to transform an array, use map and Promise.all. If you want to perform a side-effect, there is the for await extension.
map
Promise.all
for await
Agreed. You can also use await in the for loop body for ultimate control.
await
for
[Comment removed by author]
I dislike this. If you want to transform an array, use
map
andPromise.all
. If you want to perform a side-effect, there is thefor await
extension.Agreed. You can also use
await
in thefor
loop body for ultimate control.[Comment removed by author]