IB
Size: a a a
IB
m
IB
IB
IB
IB
m
IB
IB
IB
m
IB
m
IB
PT
IB
j
const data = [1, 2, 3, 4]
const results = []
let total = 0
for (let i = 0; i < data.length; i++) {
myAsyncFunction(data[i], (result) => {
results[i] = result
total++
if (total === data.length) {
console.log(results)
}
})
}