In order to parse the $1,598.99
price, you can use the following snippet:
function parsePrice(str) {
return parseFloat(str.replace(/[$,]/g, ""));
}
References:
In order to parse the $1,598.99
price, you can use the following snippet:
function parsePrice(str) {
return parseFloat(str.replace(/[$,]/g, ""));
}
References: