DEV Community

Discussion on: Why is using javascript “for loop” for array iteration a bad idea?

Collapse
 
ianwijma profile image
Ian Wijma

Tip !

You can use for...of to loop over an array and for...in to loop over keys of an object.