forked from M3-Academy/challenge-algorithms-v2.0
6 lines
148 B
JavaScript
6 lines
148 B
JavaScript
export function sum(values) {
|
|
// implementar logica aqui
|
|
return values.reduce((totalnum, atualnum) => {
|
|
return totalnum + atualnum
|
|
}, 0)
|
|
} |