Suppose I have an array and I need to apply an asynchronous function to each element of the array.
let arr = [item1, item2, item3]
// My goal is to
await arr.forEach(async (item) => {...})
// This can be achieved by
let asyncFunc = async (item) => {...}
await asyncFunc(item1)
await asyncFunc(item2)
await asyncFunc(item3)
Is there a way to accomplish this task?