title: Angular check if array contains object with specific variable value
body: <p>I am using angular and I have an array of Objects let's say <code>Item(SmallItem, Bollean, Boolean)</code> and in my code I add elements to this array by pushing, like for example:</p>
  
  <pre><code>this.Items.push(new Item(smallItem, false, true));
  </code></pre>
  
  <p>However, I would like to push an <code>Item</code> if and only if item with the same <code>smallItem</code> does not exist in <code>Items</code>. How do I go about it?</p>