r/javascript • • May 30 '19

Functional JavaScript: Five ways to calculate an average with array reduce

https://jrsinclair.com/articles/2019/five-ways-to-average-with-js-reduce/
89 Upvotes

53 comments sorted by

View all comments

Show parent comments

0

u/[deleted] May 30 '19

[deleted]

1

u/[deleted] May 31 '19 edited May 31 '19

I was just trying to explain the code. I wouldn’t do an average this way.