News for hackers. Stuff that matters.
Re:A Reintroduction to JavaScript by al2o3cr on Monday February 03, 2014 @05:22PM (#7173946)
The above code will print out an off-by-one index for each element (starts at 1 and not 0).

Given that the loop also fails to complete if someArray contains a falsy value, I'd say this trick falls into the "too cute to be safe" category.

There are no comments on this comment yet.