Performs
[].map()
on an array but supports an async callback. The async callback is blocking. Meaning,
awaitedForEach will wait for a callback on array element 1 to finish before moving on to array
element 2. Compare to await Promise.all([].map(async () => {})) which is not blocking (all
callbacks are called in parallel).
Performs
[].map()
on an array but supports an async callback. The async callback is blocking. Meaning,awaitedForEach
will wait for a callback on array element 1 to finish before moving on to array element 2. Compare toawait Promise.all([].map(async () => {}))
which is not blocking (all callbacks are called in parallel).