title: delimit a newline string to comma separated in javascript
body: <p>Hi I have a set of string values like </p>
  
  <pre><code>12345
  
  12346
  
  12347
  
  12348
  
  12342
  
  12345
  
  12334
  </code></pre>
  
  <p>The values will be received from a list, one below another
  I need to assign these values to a string with comma separated, like:</p>
  
  <pre><code>12345,12346,12347,12348...
  </code></pre>
  
  <p>in javascript. I am getting these values as input parameters from a multi-line text box.</p>