feat: Resolve o exercício 03-maxValue
This commit is contained in:
parent
e4013b4627
commit
8a86650b28
@ -1,4 +1,8 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let res = Math.max(...values)
|
||||
if (values.length === 0){
|
||||
return 0
|
||||
}
|
||||
return res
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user