forked from M3-Academy/challenge-algorithms-v2.0
feat: finalizado sum
This commit is contained in:
parent
58d5a12222
commit
8134411c16
@ -1,4 +1,6 @@
|
||||
export function sum(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
return values.reduce((ac, value) => {
|
||||
return ac += value;
|
||||
}, 0);
|
||||
}
|
Loading…
Reference in New Issue
Block a user