Last updated 4 years ago
Was this helpful?
fold array
while fold pass (accumulate + current argument **2)
const squareSum = (numbers) => numbers.reduce((acc, cur) => acc + cur ** 2, 0);