title: Filter Array of Arrays in JavaScript to become unique
body: <p>This is how I would filter an array of numbers to become unique:</p>
  <pre><code>const unique = (value, index, self) =&gt; {
    return self.indexOf(value) === index
  }
  
  const costs = [10, 8, 5, 5, 8, 7]
  const uniqueCosts = costs.filter(unique)
  
  console.log(uniqueCosts) // [10,8,5,7]
  </code></pre>
  <p>How could I filter an array of arrays to be unique:<br />
  <code>arr = [[10,10],[8,8],[5,5],[5,5],[8,8],[7,7]]</code><br />
  <code>-&gt; uniqueArr =[[10,10],[8,8],[5,5],[7,7]] </code></p>
  <p>I have looked into creating a new <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set" rel="nofollow noreferrer">Set()</a> which again works quite well in a simple array however the <code>.add</code> function of a set seems to add an array to the set even if the array is already in the set.</p>
  <p>Any help would be appreciated, I'm looking for a simple solution, using the power of existing functions in JavaScript without involving <code>for/while</code> loops.</p>
  <p>Many thanks!</p>