title: Angular5 compare 2 array of (JSON) objects and splice when found match
body: <p>If i have 2 arrays with (JSON) objects and i want to compare them and splice an object when there is a match what is the best way to do this.</p>
  
  <p>Example:</p>
  
  <p>Array 1:</p>
  
  <pre><code>[{test: 1, test2: 2}, {test: 3, test2: 5}, {test: 6, test2: 8}]
  </code></pre>
  
  <p>Array 2:</p>
  
  <pre><code>[{test: 6, test2: 8}, {test: 1, test2: 2}]
  </code></pre>
  
  <p>Now we see that Array 1 index 0 and Array 2 index 1 are a match.
  What I want to do now is splice the object from array 1.</p>
  
  <p>Is there a good/smart way to achieve this?</p>
  
  <p>thx!</p>