title: jQuery - remove duplicates from an array of strings
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/840781/easiest-way-to-find-duplicate-values-in-a-javascript-array">Easiest way to find duplicate values in a JavaScript array</a><br>
    <a href="https://stackoverflow.com/questions/10191941/jquery-unique-on-an-array-of-strings">jQuery.unique on an array of strings</a>  </p>
  </blockquote>
  
  
  
  <p>I'm trying to get a neighbor list by breadth-first search (to be specific: the indexes of same color neighbor balls in <a href="http://www.gameguru.in/images/block-d-ss2.jpg" rel="noreferrer">Block'd</a>)
  my <code>function getWholeList(ballid)</code> return an array like</p>
  
  <pre><code>thelist=["ball_1","ball_13","ball_23","ball_1"]
  </code></pre>
  
  <p>and of course there are duplicates.</p>
  
  <p>I tried to remove them with jQuery.unique(); but it does not work with strings I guess,
  so is there any way for this(making the array unique) ? </p>
  
  <p>Thanks for any help..</p>