how to find max value in array of objects python code example
Example 1: python find the key with max value
a_dictionary = {"a": 1, "b": 2, "c": 3}
# get key with max value
max_key = max(a_dictionary, key=a_dictionary.get)
print(max_key)
Example 2: find max of array of objects key
Math.max.apply(Math, array.map(function(o) { return o.y; }))