feat: Soluciona o exercício 03 - Max value

This commit is contained in:
Eleonora Otz de Mendonça Soares 2022-10-28 15:52:25 -03:00
parent ca578df017
commit 9ecafd2785

View File

@ -1,4 +1,8 @@
export function maxValue(values) {
// implementar logica aqui
if (values.length > 0){
return values = Math.max (...values)
} else {
return 0
}
}