1const shots = [
2 {id: 1, amount: 2},
3 {id: 2, amount: 4},
4 {id: 3, amount: 52},
5 {id: 4, amount: 36},
6 {id: 5, amount: 13},
7 {id: 6, amount: 33}
8];
9
10shots.reduce((acc, shot) => acc = acc > shot.amount ? acc : shot.amount, 0);
11
1myArray.sort(function (a, b) {
2 return a.Cost - b.Cost
3})
4
5var min = myArray[0],
6 max = myArray[myArray.length - 1]