title: Splice Function in Javascript is adding 4 empty rows to my array?
body: <p>I want to remove all the rows whose length is less than some value. I'am using Splice function in javascript to do this.</p>
  
  <pre><code>for (var i = 0; i &lt; table.length; i++) {
  
      if (table[i].length&lt;=6) {
           table.splice(i, 1);
      }
  }
  </code></pre>
  
  <p>but two  rows with length:0 are being added at the beginning and at the end of my array  <a href="http://i.stack.imgur.com/ElfVC.png" rel="nofollow">this is the actual array</a>
  <a href="http://i.stack.imgur.com/89DxQ.png" rel="nofollow">extra rows added after being spliced</a>
  whis is this happening?
  how can i get rid of it?</p>