forked from M3-Academy/challenge-algorithms-v2.0
(feat)finalizando teste 03 maxValue
This commit is contained in:
parent
8e78769206
commit
e7260ebf67
@ -1,4 +1,11 @@
|
||||
export function maxValue(values) {
|
||||
// implementar logica aqui
|
||||
|
||||
if (values == `${[]}`) {
|
||||
return 0
|
||||
|
||||
} else {
|
||||
|
||||
return Math.max.apply(null, values);
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user