metoda formatu reakcji waluty
const priceSplitter = (number) => (number && number.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','));
console.log(priceSplitter(72500));
Run code snippet
Yasin Donmez