Notes of Maks Nemisj

Experiments with JavaScript

async

How to use async/await with forEach ( oneliner )

If you’re already using async/await syntax, you might notice that forEach is not working for asynced functions. In that case you might start doing old style for loops or even for-of loops. Also if you have a bluebird package already installed you can use bluebird.each() instead. In ECMAScript 2018 there is going to be asynchronous […]

, , ,