DEV Community

loading...

Discussion on: What’s your alternative solution? Challenge #11

Collapse
savagepixie profile image
SavagePixie • Edited
const sum = (x, y) => x + y
const arrayAverage = arr => arr.reduce(sum) / arr.length