feat: Adiciona o código do desafio 3
This commit is contained in:
parent
424300248b
commit
eff82acf6d
@ -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,);
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user