8 lines
154 B
JavaScript
8 lines
154 B
JavaScript
export function maxValue(values) {
|
|
// implementar logica aqui
|
|
let maxV = Math.max(...values);
|
|
if(!values.length){
|
|
maxV = 0;
|
|
}
|
|
return maxV;
|
|
} |