Let's consider an enum
enum enumerationTmp {
a, // 0
b, // 1
c // 2
}
and an array containing elements from this enum
const letters = [enumerationTmp.a, enumerationTmp.b]
How would one determine the maximum value in the array 'letters'?
maxLetters = enumerationTmp.b // since b = 1 and a = 0