const additionSpread = (...array) => { return array.reduce((a, b) => a + b, 0); }; code example
Example: reduce javascript
let sum = arr.reduce((curr, index) => curr + index);
let sum = arr.reduce((curr, index) => curr + index);