feat(maxValue) Implementacao da funcao maxValue

This commit is contained in:
Wellington Duarte Santos 2022-11-01 08:55:24 -03:00
parent dd3cc81114
commit 89b65c171e

View File

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