In Addition to what others said, if you don't have a reference of the object which you want to search in the array, then you can do something like this.
let array = [1, 2, 3, 4, {"key": "value"}];
array.some((element) => JSON.stringify(element) === JSON.stringify({"key": "value"})) // true
array.some((element) => JSON.stringify(element) === JSON.stringify({})) // true
Array.some returns true if any element matches the given condition and returns false if none of the elements matches the given condition.