feat(masValue): exercicio resolvido
This commit is contained in:
parent
3a73f52409
commit
32a0725f3a
@ -1,8 +1,10 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
/* if(values = []) {
|
||||
return 0;*/
|
||||
|
||||
if(values.length === 0) {
|
||||
return 0;
|
||||
}else{
|
||||
return Math.max.apply(null, values);
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user