re: You don't need Array.reduce() VIEW POST


One of the reasons I like using reduce is because it prevents accidental mutation of the the original array and it is consistent with how it works and looks (in fact this applies to the other array methods like map and filter).

code of conduct - report abuse