forked from M3-Academy/challenge-algorithms-v2.0
feat: solucao sum
This commit is contained in:
parent
c6f6df9c59
commit
d4646cd89e
@ -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