Await loop over an object

I always rely on bluebird each / all to loop over an array. Until someday I meet the case where I need to use await loop over an object. Surprisingly, after trying on chrome inspector, for loop on object is very doable :

Above codes will print a text on variable k with delay every 1 second.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.