forked from M3-Academy/challenge-algorithms-v2.0
Merge branch 'feature/sum' into development
This commit is contained in:
commit
06e3feb69b
@ -1,4 +1,6 @@
|
|||||||
export function sum(values) {
|
export function sum(values) {
|
||||||
// implementar logica aqui
|
// implementar logica aqui
|
||||||
|
return values.reduce((totalnum, atualnum) => {
|
||||||
|
return totalnum + atualnum
|
||||||
|
}, 0)
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user