feat: Adiciona o código do desafio 3

This commit is contained in:
Gabriel Gomes Fernandes 2022-10-31 13:28:42 -03:00
parent 424300248b
commit eff82acf6d

View File

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