title: splice row from array by value
body: <p><strong>I want splice the line with value = 3</strong></p>
  
  <pre><code>[3,"John", 90909090]
  </code></pre>
  
  <p><strong>data.json</strong></p>
  
  <pre><code>{
  "headers":[[
  {"text":"Code","class":"Code"},
  {"text":"Code","class":"Code"}
  ]],
  "rows":[
  [0,"Peter", 51123123],
  [3,"John", 90909090],
  [5,"Mary",51123123]
  ],
  "config":[[0,0,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]],
  "other":[[13,0]]
  }
  </code></pre>
  
  <p><strong>I try this</strong>:</p>
  
  <pre><code>var size = data.rows.length; // number of rows
  
  var del = 3 // Value of ID to be deleted          
  
  for (i = 0; i &lt; size; i++) {  
  
  var id = data.rows[i][0];                  
  
      if(del==id){  // if del = id -&gt; splice                                         
  
         data.rows.splice(i,1);
  
      }
  
  }
  </code></pre>
  
  <p><strong>Results</strong>:</p>
  
  <p>Only splice or only loop this code works. </p>
  
  <p>But, with both show this error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property '0' of undefined(…)</p>
  </blockquote>
  
  <p>It occurs in "data.rows[i][0]"</p>