How to use Contains in Collection of Objects for a property code example
Example 1: array has object with property js
myArray.some(obj => obj.property === 'value')
// returns true or false
Example 2: find the property is matching
let wantedProperty = (arrayOfObjects.find(obj => obj.id === wantedObject.id) || {}).title || 'None Found';