<Feture>(maxValue): implementação do código maxValue

This commit is contained in:
Gabriel Ferraz Nogueira 2022-10-28 11:51:07 -03:00
parent 38c50ef28f
commit 8aabaf9fad

View File

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