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