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

9 lines
141 B
JavaScript
Raw Normal View History

export function maxValue(values) {
// implementar logica aqui
2022-10-31 16:28:42 +00:00
if (values.length == 0)
return 0;
return Math.max(...values,);
}