title: Removing specific values from array with some condition using jQuery
body: <p>I have below array</p>
  
  <pre><code>    var myArr = [
  "01;#Sion",
  "02;#Sion",
  "03;#Mumbai",
  "04;#Mumbai",
  "05;#Kolkata",
  "06;#Kolkata",
  "07;#Chennai",
  "08;#Chennai"
  ];
  </code></pre>
  
  <p>I need output in array as:</p>
  
  <pre><code>["01;#Sion", "03;#Mumbai", "05;#Kolkata", "07;#Chennai"]
  </code></pre>
  
  <p>It should select only unique values after <code>;#</code> .</p>
  
  <p>For Sion, output can be <code>"01;#Sion"</code> or <code>"02;#Sion"</code>.
  Any of them is fine.</p>
  
  <p>This is what I have tried so far:</p>
  
  <pre><code>var myArr = ["01;#Sion", "02;#Sion", "03;#Mumbai", "04;#Mumbai", "05;#Kolkata", "06;#Kolkata", "07;#Chennai", "08;#Chennai"];
  var newArr = [];
  
  for (j = 0; j &lt; myArr.length; j++) {
      newArr.push(myArr[j].split(";#")[1]);
  }
  
  newArr = NWF$.unique(newArr);
  
  console.log(newArr); // -&gt; ["Chennai", "Kolkata", "Mumbai", "Sion"]
  </code></pre>