4 ms·
> many people are stumped why you can't await inside of Array#map Isn't that solved with a simple google search? Async/await makes the function return promises
by Kaze404 6y ago
> many people are stumped why you can't await inside of Array#map
Isn't that solved with a simple google search? Async/await makes the function return promises, so if you use an async callback in Array#map you end up with an array of promises, which you can use with Promise#all. Seems rather simple to explain and grok.