feat(challenge): desafio max value finalizado

This commit is contained in:
Thiago Bronisio 2022-10-28 23:49:40 -03:00
parent 5646bcee3f
commit 5d039c3c43

View File

@ -1,4 +1,8 @@
export function maxValue(values) {
// implementar logica aqui
let result = Math.max.apply(null, values)
if (result < -1){
return 0;
}
return result;
}