DEV Community

loading...

Discussion on: Daily Challenge #225 - Square'n'Sum

Collapse
fvhockney profile image
Vernon Hockney

you can actually get rid of the map

const squareSum = arrayOfNumbers => arrayOfNumbers.reduce( (acc, val) => val ** 2 + acc, 0 )