forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat: solucao sum' (#6) from feature/solucao-sum into development
Reviewed-on: #6
This commit is contained in:
commit
af058b050b
@ -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