refactor(06): deleting lines

This commit is contained in:
Matheus Brollo Dauter 2022-10-31 14:43:37 -03:00
parent d1c7f499b0
commit 67b64bc155

View File

@ -1,15 +1,9 @@
export function sum(values) { export function sum(values) {
// implementar logica aqui // implementar logica aqui
if (toString.call(values) !== "[object Array]") var total = 0;
return false; for(var i = 0; i < values.length;i++)
{
var total = 0; total += Number(values[i]);
for(var i=0;i<values.length;i++) }
{ return total;
if(isNaN(values[i])){
continue;
}
total += Number(values[i]);
}
return total;
} }