forked from M3-Academy/challenge-algorithms-v2.0
feat(maxvalue):aplicando a função do teste 3
This commit is contained in:
parent
c839733a55
commit
961116c5b2
@ -1,4 +1,8 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
if (values == 0 ) return 0
|
||||
else {
|
||||
return Math.max (...values)
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user