title: Remove duplicate array value from array in javascript
body: <p>I want to remove duplicate entry from my array and my array is </p>
  
  <pre><code>        ArrayTotal All Banks,Total All Banks,Total Domestic Banks,Total Domestic Banks,B2B Bank,B2B Bank,Bank of Montreal,Bank of Montreal,The Bank of Nova Scotia,The Bank of Nova Scotia,
  </code></pre>
  
  <p>we want to remove duplicate entry for this I am trying in php unique_array and I also tried in javascript </p>
  
  <pre><code>      var uniqueNames = [];
        $.each(names, function(i, el){
        if($.inArray(el, uniqueNames) === -1) uniqueNames.push(el);
        });
  
       console.log(uniqueNames) its gave error Unexpected token A
  </code></pre>