Remove line breaks/spaces from array
<p>I am having trouble removing line breaks from my text in javascript.  Here is an example of the data I am working with:  </p>

<pre><code>0: "Christian Pulisic"
1: "↵"
2: "From Wikipedia, the free encyclopedia"
3: "↵" 
4: "Christian Pulisic"
5: "↵"
6: "Personal information"
7: "↵"
8: "Full name   Christian Mate Pulisic[1]"
</code></pre>

<p>Obviously, the line spaces/breaks or whatever you call them, are polluting the data I am getting.  </p>

<p>I cannot get the following function to recognize the line breaks and replace it with a "" which I then can very easily remove from the array through another function I run my data through.  </p>

<p>This is the code I am currently using that is not working:</p>

<pre><code>for (i in cleanArray){
    cleanArray[i].replace(/(\r\n|\n|\r)/gm,"")
};

console.log(cleanArray);
</code></pre>