Reduce
Reduces array to a single value by applying a function to each element
let numbers = [1, 2, 3, 4, 5];
// Sum all numbers
let sum = numbers.reduce((accumulator, current) => accumulator + current, 0);
console.log(sum); // 15
// With an initial value of 10
let sumPlus10 = numbers.reduce((accumulator, current) => accumulator + current, 10);
console.log(sumPlus10); // 25