O'Reilly logo
  • Patrick Toy thinks this is interesting:

// sum up all the values of an array console.log([1,2,3,4,5].reduce(function(x,y){return x+y}, 0)); // sum up all the values of an array console.log([1,2,3,4,5].reduce(function(x,y){return x+y}, 0));

From

Cover of Functional Programming in JavaScript

Note

Typo: duplicate text.