🌈 搜索
📅  最后修改于: 2022-03-11 15:04:02.528000             🧑  作者: Mango
myArray.sort(function (a, b) { return a.Cost - b.Cost }) var min = myArray[0], max = myArray[myArray.length - 1]