Merge branch 'feature/03-maxValue' into developer

This commit is contained in:
Matheus Mariosa 2022-11-02 13:36:38 -03:00
commit b84fe33a51

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 ;
}