News for hackers. Stuff that matters.
Re:Fun with JavaScript Arrays by cristiantincu on Wednesday June 12, 2013 @12:10PM (#5868822)
The `for … in` statement iterates over the enumerable properties of an object¹. It’s not for arrays.

1. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

There are no comments on this comment yet.