🌈 搜索
📅  最后修改于: 2022-03-11 15:02:59.738000             🧑  作者: Mango
arr = [{x: "a", y: 1}, {x: "something", y: 2}] arr.findIndex(obj => obj.x === "a" && obj.y === 1);