News for hackers. Stuff that matters.
Re:Use .forEach by workhere-io on Saturday April 12, 2014 @08:52AM (#7577714)
This one is even more concise and avoids the scoping issues that forEach have:

for (var i in cars) { console.log(cars[i]) }

Also, if you're using JS on the frontend, forEach isn't supported by all browsers: http://stackoverflow.com/questions/156696/which-web-browsers...

There are no comments on this comment yet.