Skip to content

Commit

Permalink
apply spread syntax for arguments for sum helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Mifrill committed Sep 24, 2021
1 parent 63cbe31 commit 7fc503b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/helpers/sum.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import { add } from './add';
* @param {number[]} numbers A list of numbers to sum
* @return {number} The sum of all the passed numbers
*/
export function sum(numbers) {
return add(numbers);
export function sum() {
return add(...arguments);
}

export default helper(sum);

0 comments on commit 7fc503b

Please sign in to comment.