HomePremium · ₹1199
← All questions

Polyfill for Array.prototype.reduce

EasyJavaScript

Implement reduce, handling the optional initial value edge cases.

Premium question

Unlock the full problem, starter code, and hidden test cases with Mentoxis Premium.

Unlock with Premium
Polyfill for Array.prototype.reduce — JavaScript Interview Question | Mentoxis