Polyfill: Array.prototype.reduce
Difficulty: easy
Implement Array.prototype.reduce. This method executes a user-supplied "reducer" callback function on each element of the array, in order, passing in the return value from the calculation on the preceding element.
To avoid conflicts, implement it as Array.prototype.myReduce.
Example
[1, 2, 3].myReduce((prev, curr) => prev + curr, 0); // 6
[1, 2, 3].myReduce((prev, curr) => prev + curr, 4); // 10