feat(maxValue): Finaliza algoritmo

This commit is contained in:
William Simão Cavalcante 2022-10-28 12:51:03 -03:00
parent b7e0d17d1e
commit 59ff8f2a54

View File

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