forked from M3-Academy/challenge-algorithms-v2.0
Merge branch 'feature/03-maxValue' into developer
This commit is contained in:
commit
b84fe33a51
@ -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