1 comment

[ 2.1 ms ] story [ 15.5 ms ] thread
I thought you could just add async to the function inside the forEach, like this:

  const baz = foo.forEach(async (bar) => await (new promise(() => console.log(bar)))));