Prototype breaks my for..in loops!

The for..in construct isn't for looping through the elements of an array. You've probably been told it does, but they were lying to you. Details in this tip.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License