News for hackers. Stuff that matters.
Re:JavaScript Illustrated: Promises by nailer on Friday October 11, 2019 @10:04AM (#21224456)
That's a good question. In addition to the sibling reply (which answers this perfectly) you can also do what I do.

  Array.prototype.forEachAsyncParallel = async function (iterateFunction) {
    await Promise.all(this.map(iterateFunction));
  }
Note 1: my app, my prototypes.

Note 2: read note 1.

There are no comments on this comment yet.