top | item 26285307 An async function walks into a loop 1 points| gabriel34 | 5 years ago |ovl.design 1 comment order hn newest Zekio|5 years ago 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)))));
Zekio|5 years ago 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)))));
Zekio|5 years ago