feat(maxValue): Implementa função maxValue
This commit is contained in:
parent
5cf92a84c1
commit
d377a0c420
@ -1,4 +1,8 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
let maxV = Math.max(...values);
|
||||
if(!values.length){
|
||||
maxV = 0;
|
||||
}
|
||||
return maxV;
|
||||
}
|
Loading…
Reference in New Issue
Block a user