title: Remove element from array of objects if the element will be inserted again
body: <p>First of all hello!</p>
  
  <p>I got an array of objects like this in JS:</p>
  
  <pre><code>[{name: "pepe", id: "#34"}{name: "juan", id: "#23"}]
  </code></pre>
  
  <p>And i want remove an object from the array if the user tries to insert the item again.</p>
  
  <p><strong>Example</strong></p>
  
  <p>Original array: </p>
  
  <pre><code>[{name: "pepe", id: "#34"}{name: "juan", id: "#23"}]
  </code></pre>
  
  <p>User clicks to add pepe again. Result:</p>
  
  <pre><code>[{name: "juan", id: "#23"}]
  </code></pre>
  
  <p>If someone could help me it will be great!</p>