DEV Community

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

drbatroni profile image
DrBatroni

I use it like this:
in - iterate in object
of - iterate over something (string/array)

Thread Thread
leob profile image
leob

Yes I like that! best one I've seen until now ...