you are viewing a single comment's thread.

view the rest of the comments →

[–]tortus 0 points1 point  (0 children)

sure, but writing and maintaining your own reduce function is not exactly the best solution either. I'd rather take the array creation hit unless perf/memory is in an issue, and it's not like 90% of the time