title: Removing an equal object from array
body: <p>I have an array of colors. I want to remove one which is equal to another object.</p>
  
  <p>Array</p>
  
  <pre><code>[
      { id: 1, color: "red"},
      { id: 2, color: "blue"},
  ]
  </code></pre>
  
  <p>Object</p>
  
  <pre><code>{ id: 2, color: "blue" }
  </code></pre>
  
  <p>I do not know the <code>index</code> in the array. Ideally, it could be something like <code>array.remove(object)</code>.</p>
  
  <p>How can I achieve this?</p>