feat: criação da resposta do 03-maxValue

This commit is contained in:
Matheus Mariosa 2022-11-02 11:43:27 -03:00
parent 924f2839fe
commit aab21161ae

View File

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