New features in JavaScript 1.8
- Expression Closures.
- Generator expressions. Allowing you to simply create generators (which were introduced in JavaScript 1.7). Typically you would have to create a custom function which would have a yield in it, but this addition allows you to use array comprehension-like syntax to create an identical generator statement.
Array.prototype.reduce()
Array.prototype.reduceRight()