title: Splice on forEach loop not working properly
body: <p>I have the following context:</p>
  
  <p><a href="https://jsfiddle.net/eqntaqbt/2/" rel="noreferrer">https://jsfiddle.net/eqntaqbt/2/</a></p>
  
  <pre><code>obj.forEach(function(user, index){
      var userName = user.name;
      console.log(index, userName);
  
    if(index === 5 || index === 2){
      obj.splice(index, 1);
    }
  });
  </code></pre>
  
  <p>I am using a <code>forEach</code> loop and <code>splice</code> to remove the item in position <code>5</code> and <code>2</code> on the <code>obj</code> array. But for some reason its not working properly.</p>
  
  <p>What am I doing wrong?</p>