title: Remove duplicate values from JS array
body: <p>I have a very simple JavaScript array that may or may not contain duplicates.</p>
  
  <pre><code>var names = ["Mike","Matt","Nancy","Adam","Jenny","Nancy","Carl"];
  </code></pre>
  
  <p>I need to remove the duplicates and put the unique values in a new array.</p>
  
  <p>I could point to all the codes that I've tried but I think it's useless because they don't work. I accept jQuery solutions too.</p>
  
  <h3>Similar question:</h3>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/840781">Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array</a></li>
  </ul>