title: Removing negatives from JavaScript array
body: <p>This is not removing negative integers from an array. I can't figure out why not...</p>
  
  <pre><code>for(var ii = 0; ii &lt; diffs.length; ii++) {
       if(Number(diffs[ii]) &lt; 0) {
         diffs.splice(ii, 1);
       }
     }
  </code></pre>