forked from M3-Academy/challenge-algorithms-v2.0
feat: solucao sum #6
@ -1,4 +1,5 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
}
|
||||
let sum = values.reduce((sum, number) => sum + number, 0);
|
||||
return sum;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user