title: Array unique values
body: <p>While dealing with JSON returned from YQL, I found myself looking for a way extract all unique values from an array. </p>
  
  <pre><code>function uniqueArrayValues(o){
        var items = o.query.results.row,
            output = [];
  
    function check(val){
      for(var c=0; c&lt;output.length; c++){
        if(output[c] === val){
          return false;
          }
      }
       return true;
    }
  
   for(var i=1; i&lt;items.length; i++){
     if(check(items[i].team)){
       output.push(items[i].team);
      }    
    }
  
    return output;
  }
  </code></pre>
  
  <p>The code looks a bit too 'busy' and i was wondering if there is a more elegant way of extracting unique values from an array.</p>