Reformat test parameters for consistency

This commit is contained in:
cats256
2023-07-04 11:38:40 -05:00
parent 5a7cd9b162
commit 075fe8eea2
3 changed files with 27 additions and 27 deletions
@@ -6,8 +6,8 @@ const subtract = function (a, b) {
return a - b;
};
const sum = function (array) {
return array.reduce((total, current) => total + current, 0);
const sum = function (...args) {
return args.reduce((total, current) => total + current, 0);
};
const multiply = function(...args){