DEV Community

Discussion on: For...of? Or for...in? Which to choose!

Collapse
 
ryanguitar profile image
Ryan Els

I normally remember to use for...in for objects by saying to myself: 'You put an Object In a box'.
And for for...of I say: 'You have an Array Of objects.'