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

5 lines
134 B
JavaScript
Raw Normal View History

2022-10-30 01:58:26 +00:00
export function maxValue(values = []) {
// implementar logica aqui
2022-10-30 01:58:26 +00:00
if (values.length < 1) return 0
return Math.max(...values)
}