Check out example codes for "find max of array of objects key". It will help you in understanding the concepts better.

Code Example 1

const shots = [
  {id: 1, amount: 2},
  {id: 2, amount: 4},
  {id: 3, amount: 52},
  {id: 4, amount: 36},
  {id: 5, amount: 13},
  {id: 6, amount: 33}
];

shots.reduce((acc, shot) => acc = acc > shot.amount ? acc : shot.amount, 0);

Code Example 2

myArray.sort(function (a, b) {
    return a.Cost - b.Cost
})

var min = myArray[0],
    max = myArray[myArray.length - 1]

Code Example 3

Math.max.apply(Math, array.map(function(o) { return o.y; }))

Learn ReactJs, React Native from akashmittal.com