const myAsyncLoopFunction = async (array) => { const allAsyncResults = [] for (const item of array) { const asyncResult = await asyncFunction(item) allAsyncResults.push(asyncResult) } return allAsyncResults }