const arr = [
{ username: '悟空', height: 70 },
{ username: '八戒', height: 60 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
{ username: '龙马', height: 30 },
];
const index = arr.findIndex((value) => value.height === 660);
console.log(index);
