title: Array.filter is not working properly
body: <p>I have an array and i want to remove a record from it i have use <code>Array.filter()</code> but its return same array as it is.</p>
  
  <p>My Code: </p>
  
  <pre><code>var url = window.location.pathname,
      orderId = url.split('/').slice(-2)[0];
  var Cart = JSON.parse(localStorage.getItem('Cart'));
  newCart=Cart.filter(function(item) {
      if (parseInt(item.orderId) == parseInt(orderId)) {
          return {};
      }
      else
      {
          return item;
      }
  });
  localStorage.setItem('Cart',JSON.stringify(newCart));
  </code></pre>