there is a way to add a comma to the thousand digits in numbers and also delete the point and the numbers after the point ? in my case i try :
{TOTAL_COSTS_PLAN.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",")}
and it gives me only the number with no comma inside and I don't understand why.
for example : 5,432.1 should be 5,432 and 567,892.34 should be 567,892 but in my case it doesn't work.