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.
arrayVal[0] = null
arrayVal[1] = "Some text"
arrayVal[2] = null
arrayVal[3] = "More text"
arrayVal[4] = "Text Again"
I want to achieve the following:
arrayVal[0] = "Some Text"
arrayVal[1] = "More text"
arrayVal[2] = "Text Again"
splice()function