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