An async function walks into a loop
ovl.design
An async function walks into a loop
1–2 of 2 posts
Re: An async function walks into a loop
#2I 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)))));