feat(desafio): Adiciona terceira tarefa concluida #2

Merged
ManuelaLuanaSchumackerTavares merged 1 commits from feature/maxValue into feature/algoritmo 2022-10-28 17:54:58 +00:00

View File

@ -1,4 +1,10 @@
export function maxValue(values) { export function maxValue(values) {
// implementar logica aqui // implementar logica aqui
if(values.length == 1){
return values[i];
}else if(values.length == []){
return 0;
}else{
return Math.max.apply(null, values);
}
} }