challenge-algorithms-v2.0-E.../03-maxValue/index.js

5 lines
123 B
JavaScript

export function maxValue(values) {
// implementar logica aqui
return (values.length == 0) ? 0 : Math.max(...values);
}