DEV Community

loading...

Discussion on: Uncomplicated - (for ... in) VS (for ... of) loop

Collapse
juniordevforlife profile image
Jason F

Great article! Bookmarked because I'm sure I'll revisit soon. I did want to point out that when considering using the for...in statement it should be taken in to account that the statement does not guarantee the values will be returned in order. Mdn covers this in the for...in article.

Collapse
mayankav profile image
mayankav Author

Hey @jasonf ! Thanks for adding more information to the post.