forked from M3-Academy/challenge-algorithms-v2.0
11 lines
136 B
JavaScript
11 lines
136 B
JavaScript
export function maxValue(values) {
|
|
if (values == `${[]}`) {
|
|
return 0
|
|
|
|
} else {
|
|
|
|
return Math.max.apply(null, values);
|
|
|
|
}
|
|
|
|
} |