3 ms·
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 = asy
by nailer 7y ago
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.