Alternatives to javascript function-based iteration (e.g. jQuery.each())

Posted by Colin on Stack Overflow See other posts from Stack Overflow or by Colin
Published on 2009-09-23T20:02:59Z Indexed on 2010/04/18 13:43 UTC
Read the original article Hit count: 373

Filed under:
|
|

I've been watching Google Tech Talks' Speed Up Your Javascript and in talking about loops, the speaker mentions to stay away from function-based iterations such as jQuery.each() (among others, at about 24:05 in the video). He briefly explains why to avoid them which makes sense, but admittedly I don't quite understand what an alternative would be. Say, in the case I want to iterate through a column of table cells and use the value to manipulate the adjacent cell's value (just a quick example). Can anyone explain and give an example of an alternative to function-based iteration?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about loops