diff --git "a/level-00/0.6-\355\225\250\354\210\230-\353\202\230\353\250\270\354\247\200\353\247\244\352\260\234\353\263\200\354\210\230/solution.ts" "b/level-00/0.6-\355\225\250\354\210\230-\353\202\230\353\250\270\354\247\200\353\247\244\352\260\234\353\263\200\354\210\230/solution.ts" index 2f50000..e5e37c1 100644 --- "a/level-00/0.6-\355\225\250\354\210\230-\353\202\230\353\250\270\354\247\200\353\247\244\352\260\234\353\263\200\354\210\230/solution.ts" +++ "b/level-00/0.6-\355\225\250\354\210\230-\353\202\230\353\250\270\354\247\200\353\247\244\352\260\234\353\263\200\354\210\230/solution.ts" @@ -7,6 +7,5 @@ * solution(1, 2, 3) // => 6 */ export function solution(...numbers: number[]): number { - // TODO: 구현하세요 - throw new Error("아직 구현되지 않았습니다"); + return [...numbers].reduce((acc, cur) => acc + cur, 0); }