I have an array of objects *and the object looks something *like this {seat_id, room_id, date_created};
I want to find if in that array there is an object which has seat_id equal to a specific value. How can I do that?
This is the correct answer because you want to find IF there is the element. But if you want to find WHERE the element is, the other answer is the correct one.