funcifyr.js
function(arr) {
        if (Array.prototype.from) return Array.from(new Set(arr));
        return arr.filter(function(v,i,a) {
          return i === a.indexOf(v);
        });
      }
function(arr) {
        if (Array.prototype.from) return Array.from(new Set(arr));
        return arr.filter(function(v,i,a) {
          return i === a.indexOf(v);
        });
      }
function ( arr ) { if ( Array . prototype . from ) return Array . from ( new Set ( arr ) ) ; return arr . filter ( function ( v , i , a ) { return i === a . indexOf ( v ) ; } ) ; }
Takes an array with duplicates and returns a new one with all dupes removed.

unique :: (arr) → arr

@param arr
@returns A new array with duplicates removed
Takes an array with duplicates and returns a new one with all dupes removed .