reduce
An array method that combines all the elements into one value, such as a total. Its callback gets the accumulator and the current element, and its second argument is the starting value.
An array method that combines all the elements into one value, such as a total. Its callback gets the accumulator and the current element, and its second argument is the starting value.