title: Why is this 2D array comparison not working?
body: <p>So, I got:</p>
  <pre><code>array1 = 
  [
   [&quot;Fisrt Name1&quot;, &quot;Last Name1&quot;, &quot;email@email.com&quot;],
   [&quot;Fisrt Name2&quot;, &quot;Last Name2&quot;, &quot;email2@email.com&quot;],
   [&quot;Fisrt Name3&quot;, &quot;Last Name2&quot;, &quot;email3@email.com&quot;]
  ]
  </code></pre>
  <pre><code>array2 = 
  [
   [&quot;email2@email.com&quot;],
   [&quot;email3@email.com&quot;],
  ]
  </code></pre>
  <p>I'm trying to compare them and keep uniques from <code>array1</code> in the following ways and it should return:</p>
  <pre><code>resultingArray = 
  [
   [&quot;Fisrt Name1&quot;, &quot;Last Name1&quot;, &quot;email@email.com&quot;],
   [&quot;Fisrt Name3&quot;, &quot;Last Name2&quot;, &quot;email3@email.com&quot;]
  ]
  </code></pre>
  <p>...but it's returning everything.</p>
  <p>Attemp1:</p>
  <pre><code>resultingArray = array1.filter(e =&gt; !array2.includes(e));
  </code></pre>
  <p>Attemp2:</p>
  <pre><code>let resultingArray = [];
  for (let a = 0; a &lt; array1.length; a++){
      for (let n= 0; n &lt; array2.length; n++){
        if(array1[a][2].indexOf(array2[n][0]) === -1){
          resultingArray.push(array1[a])
        }
      }
    } 
  </code></pre>
  <p>Thanks for helping!</p>