diff --git a/ArraySum.js b/ArraySum.js new file mode 100644 index 0000000..43ae9fb --- /dev/null +++ b/ArraySum.js @@ -0,0 +1,9 @@ +const ArraySum = (numbers) =>{ + return numbers.reduce((accumulator, currentValue)=>{ + return accumulator + currentValue; + }, 0); +} + +export { + ArraySum +} \ No newline at end of file