I am new to node JavaScript and do not understand the syntax too much. My code
console.log(index+ "\t" + output[index]);
Outputs empty strings in my array.
So I have created a new method
var array = removingEmptyString(output[index]);
function removingEmptyString(array)
{
    var newArray = [];
    for(var i in array)
        {
            if(i != "" || i != null || i != " ")
                {
                    newArray[i] = i;
                }
        }
    }
What I do not understand is if I declared my arrays correct? Also if I passed int he array into the removingEmptyString correctly, also if declaring the new array and inserting the non empty string into that array are correct?
 
     
    