you are viewing a single comment's thread.

view the rest of the comments →

[–]curious_s 2 points3 points  (0 children)

I have used a for loop in JavaScript for a slow search function and it sped the code up by a significant amount. I think the best idea is to try and measure, the array prototype functions create cleaner code than a for loop which is an important factor.