Reduce
methodsExecutes a callback function for every single item in the array and returns the accumulated result. Iterates the items left to right.
Parameters:callbackFunction
Returns:Number
The function that will be executed for every item.
—The accumulated result.