let arr = [ {id: "1", data: "sadsa"}, {id: "2", text: "sdsadsa"} ] let o = arr.find(a => "text" in a) console.log(o)