Async await for loops in JavaScript

 Some loop are not supported the async await properly. If you want to work async await correctly then you could do following things:

const arr = [1,2,3,4]


for(item of arr){

const result = await getNetworkRequest()

}

Post a Comment

0 Comments