DEV Community

Discussion on: Difference between for...of and for...in loop in JavaScript.

Collapse
 
lazylad profile image
Tathagat

I have recently used for of to iterate over array and element of array were to passed to a async function as parameter and I need to hold the execution of loop util async function gets resolved I tried many things but at the end for of loop work in this case.