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

4 lines
115 B
JavaScript
Raw Normal View History

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