JavaScript for WordPress › Forums › Vanilla JavaScript › is for loop better than for of ? › Reply To: is for loop better than for of ?
April 15, 2017 at 6:36 pm
#25777
Zac Gordon
Keymaster
Ah, I think you want to use the for of loops in this case. The for in loop is for looping through properties of an object, not so much for loops through items in an array.
Is that it?