Use the priceFormat()
method of the Magento_Catalog/js/price-utils
class:
A usage example:
See also:
Magento_Catalog/js/price-utils::formatPrice()
pollutes the global formatting settings with local ones because of a wrong lodash
extend
/ assignIn
usagegroupLength
property has an incorrect «,» value instead of a natural number in Magento_Catalog/js/price-utils