See more
// Please abstract the fact that Array.prototype.sort// is stupid and sorts things in lexicographical ordervar maxValue = myArray.sort().pop();