I have a text box that will have a currency string in it that I then need to convert that string to a double to perform some operations on it.
\"$1,1
Here's a simple function -
function getNumberFromCurrency(currency) { return Number(currency.replace(/[$,]/g,'')) } console.log(getNumberFromCurrency('$1,000,000.99')) // 1000000.99