feat: Adiciona 03-maxValue

This commit is contained in:
Izabela Balizardo 2022-10-29 18:50:04 -03:00
parent 29af326134
commit 993dfe0924

View File

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