title: Change javascript array value of 0 to null value
body: <p>I have a few arrays that are laid out like so:</p>
  
  <pre><code>var row1 = [4,6,4,0,9];
  var row2 = [5,2,0,8,1];
  var row3 = [2,0,3,1,6];
  </code></pre>
  
  <p>I want to replace any values that have 0 with a null value. so they would look like:</p>
  
  <pre><code>var row1 = [4,6,4,,9];
  var row2 = [5,2,,8,1];
  var row3 = [2,,3,1,6];
  </code></pre>
  
  <p>Any ideas? Basically what I'm trying to do is loop through each value of the array, check to see if it equals 0, and if so replace it with a null value.</p>
  
  <p>Thanks in advance.</p>