I need to show currency format like these, how can we show.
₹1 ₹10 ₹100 ₹1,000 ₹10,000 ₹1,00,000 ......
prefix.replace(/\B(?=(?:\d{2})+(?!\d))/g, ",")
Complete explanation on why this regex places commas at the right place is is mentioned here.