Question: I need to show currency format like these, how can we show.

```
₹1
₹10
₹100
₹1,000
₹10,000
₹1,00,000
......

```

Answer: 
I know it's a bit late, but you can just use <https://osrec.github.io/currencyFormatter.js/> which handles 

Then all you need is:

```
// Outputs ₹ 25,34,234.00
OSREC.CurrencyFormatter.format(2534234, { currency: 'INR' }); 

```
1. Get the digits before last three.
2. Replace the rest of the digits with `prefix.replace(/\B(?=(?:\d{2})+(?!\d))/g, ",")`
3. Combine the above section with this modified prefix

Complete explanation on why this regex places commas at the right place is is mentioned [here](https://stackoverflow.com/questions/17294959/how-does-b-d3-d-g-work-for-adding-comma-on-numbers).