JavaScript Array.reduce()
This example finds the sum of all numbers in an array: