forked from M3-Academy/challenge-algorithms-v2.0
feat: criação da resposta do 03-maxValue
This commit is contained in:
parent
924f2839fe
commit
aab21161ae
@ -1,4 +1,8 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let maiorNumero = Math.max(...values);
|
||||
if (values.length === 0) {
|
||||
return maiorNumero=0
|
||||
} else {};
|
||||
return maiorNumero ;
|
||||
}
|
Loading…
Reference in New Issue
Block a user