title: Whats the easiest way to remove null values from an array with a loop (Js)
body: <p>If I have an array with three text values and two null values. How could those be removed with a loop. Is it possible to use splice to do this.</p>
  
  <pre><code>arrayVal[0] = null
  arrayVal[1] = "Some text"
  arrayVal[2] = null
  arrayVal[3] = "More text"
  arrayVal[4] = "Text Again"
  </code></pre>
  
  <p>I want to achieve the following:</p>
  
  <pre><code>arrayVal[0] = "Some Text"
  arrayVal[1] = "More text"
  arrayVal[2] = "Text Again"
  </code></pre>