title: Remove Duplicate rows in multidimensional array using Javascript
body: <pre><code>var MyArray = [
      [1, "07/28/2014"],
      [2, "07/29/2014"],
      [3, "07/28/2014"],
      [4, "07/30/2014"],
      [5, "07/28/2014"],
  ];
  </code></pre>
  
  <p>In this array, how to remove the duplicate columns and find count the removed items.</p>
  
  <p>I need individual count for removed items.</p>
  
  <p>like</p>
  
  <pre><code>07/28/2014 is 2 times.
  </code></pre>
  
  <p><strong>This is my Code:</strong> </p>
  
  <pre><code>function(MyArray, search_val)
  {
      var counter = 0; alert(MyArray.length);
  
      for(var i = 0; i &lt; MyArray.length; i++) 
      {
          if(MyArray[i][0] == search_val)
          {   
               MyArray.splice(i, 1);
               counter++;
          }
      }
      alert("counter: "+counter);
      return counter;
  }
  </code></pre>