title: Filter unique items from jQuery array
body: <p>I am trying to pull all unique <code>Field</code> names from the returned results of an Ajax call. However, for whatever reason, the <code>Field</code> name <code>DRMrole</code> continues to appear twice. </p>
  
  <p>Here is the jQuery I am using </p>
  
  <pre><code>//Construct array to determine unique Field names
  var fieldArray = [];
  $.each(data, function(i, item){
      fieldArray.push(item.Field);
      console.log(item.Field);
  });
  fieldArray = $.unique(fieldArray);
  console.log(fieldArray);
  </code></pre>
  
  <p>And here are the readouts from the <code>console.log</code> commands</p>
  
  <p><img src="https://i.stack.imgur.com/i3F2i.png" alt="enter image description here"></p>
  
  <p>As you can see, for some reason <code>DRMrole</code> appears twice in the filtered results. This happens each and every time I run this code so doesn't appear to be random. </p>