export function maxValue(values) { let resultOfMaxValue = Math.max(...values) if(values === null) { resultOfMaxValue = 0 } return resultOfMaxValue }