Posted 01 December 2014 - no this is not the start of an "advent calendar" ES6 gives us a new way to iterate, and it's already supported in stable releases of Firefox, Chrome, & Opera. Here it is: for (var num of [1, 2, 3]) { console.log(num); } // Result: 1 // Result: 2 // Result: 3 Unlike for (part in thing) which iterates through property names of an object in a generic way, for (part of thing)
