explode new line in javascript
<p>How do I convert the php code below into javascript? I google it and found something to do with st.replace(/,/g,"\n") but how to apply it to the variable? I have low knowledge about javascript and trying to learn it.</p>

<pre><code>$items = explode("\n", $model);
</code></pre>
