forked from M3-Academy/challenge-algorithms-v2.0
11 lines
144 B
JavaScript
11 lines
144 B
JavaScript
export function maxValue(values) {
|
|
|
|
if(values.length < 1){
|
|
return 0;
|
|
}
|
|
|
|
let maior = Math.max.apply(null, values)
|
|
|
|
return maior;
|
|
|
|
} |