title: Why can't I remove item from this Array using slice or lodash remove?
body: <p>Using slice (In this situation I find the correct item in the Array, attempt slice, but the Array stays exactly the same):</p>
  
  <pre><code>for (var i=0; i&lt;vm.storedViews.length; i++) {
      if (view_id === vm.storedViews[i].id) {
          vm.storedViews.slice(i,1);
          // vm.storedViews = _.remove(vm.storedViews, i);
          break;
      }
  }
  
  console.log('vm.storedViews',vm.storedViews);
  </code></pre>
  
  <p>Using <code>_.remove</code> all items end up being removed from my Array:</p>
  
  <pre><code>for (var i=0; i&lt;vm.storedViews.length; i++) {
      if (view_id === vm.storedViews[i].id) {
          // vm.storedViews.slice(i,1);
          vm.storedViews = _.remove(vm.storedViews, i);
          break;
      }
  }
  
  console.log('vm.storedViews',vm.storedViews);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/Sp6bJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Sp6bJ.png" alt="enter image description here"></a></p>