News for hackers. Stuff that matters.
Re:Silly Javascript by invisible on Sunday July 26, 2009 @01:27AM (#724086)
Agreed, just in a rush to comment before. I'd go one further and say using an Array that way is just plain worrisome in JavaScript. It just breaks the conceptual usage "sort of" of Array vs Object (for/while vs for each...in). That's why a lot of frameworks add an "each" iterator for Array/Hashes (Hashes being a "controlled" Object added by most frameworks).

There are no comments on this comment yet.