jQuery hapus duplikat dari array

//The jQuery unique method only works on an array of DOM elements.
//You can easily make your own uniqe function using the each and inArray methods:
function unique(list) {
  var result = [];
  $.each(list, function(i, e) {
    if ($.inArray(e, result) == -1) result.push(e);
  });
  return result;
}
Alby7503