An async function walks into a loopovl.design 1 pointgabriel345 years ago1 commentSaveHideCopy link On HNComments−Zekio5yI 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)))));
Comments
I thought you could just add async to the function inside the forEach, like this: