Find a record inside an array of objects

I have an array of objects:

[{id:123, data: "blabla"}, {id:456, data: "blablabla"}]

I want to check if one of those id’s is equal to 123.
How do i set the filter? i have tried to use Array contains, but it is not working since it is an array of objects. What other method can i use?

The Iterator is not an option, since i want to do something if the record exists or else return.

Using the map function, collect all Id’s into array then check to see if the array contains your ID.
I am on my phone rn, but i belive it should be something like: map(data; id)