by Per Harald Borgen

The reduce() method reduces an array to a single value. It executes a function on each of the item in the array, and stores the return value of the function in an accumulator. Reduce is a prototype method of JavaScript arrays.

More by Per Harald Borgen
Popular casts in topic