title: How to convert string currency value in integer
body: <p>I have string like "17,420 ฿". How to change this as integer value. I have done</p>
  
  <pre><code>var a = "17,420 ฿"
  var b = a.split(' ')[0];
  console.log(Number(b))
  </code></pre>
  
  <p>But I am getting NaN because of <code>,</code>.
  So i have done like below</p>
  
  <pre><code>var c = b.replace( /,/g, "" );
  console.log(Number(c));
  </code></pre>
  
  <p>Now, I am getting 17420 as an integer.</p>
  
  <p>But, is there any better method to do it.</p>