forked from M3-Academy/challenge-algorithms-v2.0
Merge pull request 'feat(sum): funcao feita' (#6) from feature/sum into development
Reviewed-on: #6
This commit is contained in:
commit
e92bfc7d68
@ -1,4 +1,6 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
return values.reduce((somatorio, valor) => {
|
||||
return somatorio + valor
|
||||
}, 0)
|
||||
}
|
Loading…
Reference in New Issue
Block a user