forked from M3-Academy/challenge-algorithms-v2.0
develop #12
@ -1,4 +1,9 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
if(values.length > 0){
|
||||
return Math.max.apply(null, values);
|
||||
}
|
||||
else{
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user