'Formatted Currency Value normalize to number again. Angular | Javascript

I have formatted the Value by using currency pipe.

this.amount = this.currencyPipe.transform(10230, 'USD', '$', '1.2-2')

this results as $10,230.00

but while saving I need to Normalize the value again to number as 10230



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source