September 6, 2004 at 3:04PM Stoopid JavaScript!
I really like JavaScript, but there’s one thing about the language that irritates the left tit off of me when I’m using it and that’s the behaviour of for..in loops with respect to arrays.
Whereas the sane thing to do with associative arrays is to give the key, the same behaviour doesn’t make sense with regular arrays. What you’d expect is to get the values with regular arrays, but does JS do that? Noooo!
Grr!
No comments.