So, I wrote this for loop
所以,我写了这个for循环
if (specimins.length > 0) {
var max = specimins[0]
for (var x = 1; x < specimins.length; x++) {
if ((max.weight+max.height) > (specimins[x].weight+specimins[x].height)) {
max = specimins[x]
}
}
specimins = [max]
}
if