Skip to main content

All Questions

Tagged with
-1 votes
1 answer
194 views

eradicating the array = loop mindset [closed]

I have noticed a common issue in code reviews, that takes this form: // "arr" is an array for (i = 0; i < arr.length; ++i) { if (i == 3) { // do something with arr[i] } if (i ==...
JoelFan's user avatar
  • 7,121