Loading problem…
Implement Array.prototype.myReduce — a polyfill that behaves like native Array.prototype.reduce.
Reduce applies a reducer function to each element and returns a single accumulated result.
arr.myReduce(callbackFn, initialValue?)(accumulator, currentValue, index, array)initialValue is provided: start at index 0 with that accumulator.initialValue is not provided:initialValue, throw TypeError.