Merge branch 'feature/06-sum' into development

This commit is contained in:
Andrea Matsunaga 2022-10-30 14:46:17 -03:00
commit 48045dae40

View File

@ -1,4 +1,4 @@
export function sum(values) {
// implementar logica aqui
if(values.length < 1) return 0;
return values.reduce((previousValue, currentValue) => previousValue + currentValue);
}