title: How to remove array based on specific value?
body: <p>I have two arrays.</p>
  <pre><code>var allAuth = [1, 2, 3, 4, 5, 6, 7, 8]
  let thomasauth = [2, 3, 4, 5, 6, 7, 8]
  
  let res = allAuth.filter(f =&gt; !thomasauth.includes(f));
  </code></pre>
  <p>I am returning the missing matching value from <code>allAuth</code> array which is 1.</p>
  <p>I want to remove 1 from <code>allAuth</code> array.</p>
  <p>I currently have</p>
  <pre><code>let filteredArr = allAuth.filter(e =&gt; e !== res)
  </code></pre>
  <p>but this just gives me back the allAuth array without anything being removed.
  my desired output should be</p>
  <pre><code>let filteredArr = [2,3,4,5,6,7,8]
  </code></pre>
  <p>Can anyone help? Thanks.</p>