loading...

re: What’s your alternative solution? Challenge #50 VIEW POST

FULL DISCUSSION
 

Using toString to flatten the array:

const sumArray = ar => JSON.parse(`[${ar.toString()}]`).reduce((a,c) => a + c)
code of conduct - report abuse