Here my array :
[{id: 1, value:'blabla'}, {id: 2, value:'blabla'}, {id: 3, value:'blabla'}]
I try to return true or false if an id is present in this array :
array.includes(2) -> true
array.includes(7) -> false
I need to do this on the id index of each object of the array.
I know i can use a foreach on each id of the array, but i want to use a cleanest way to do this. What can i use ? Thanks !