title: Get currency symbol from a string price
body: <p>I have a prices:</p>
  
  <pre><code>var str1 = '10,00 €';
  var str2 = '12.22 $';
  </code></pre>
  
  <p>I need get only currency symbol. I writed function:</p>
  
  <pre><code> function stringToCurrency(str){
      return Number(str.replace("€", "").replace("$", "");
  }
  </code></pre>
  
  <p>But this only replace currency symbol on <code>''</code>. How I can get currency symbol?</p>