Odd for an article written in Oct 8 2019, there's no mention of ES2017's `await`.
`.then()` was fine back in the day, but there's not a good reason to write new code using it in 2019.
`.then()` was fine back in the day, but there's not a good reason to write new code using it in 2019.
await Promise.all([promise, promise]);
Array.prototype.forEachAsyncParallel = async function (iterateFunction) {
await Promise.all(this.map(iterateFunction));
}
Note 1: my app, my prototypes.Note 2: read note 1.