If you're building apps for the Indonesian market, you've probably struggled with formatting Rupiah currency. Different apps need different formats - some show decimals, some don't, some need the "Rp" symbol, others don't.

I built @indodev/toolkit to solve exactly this problem. Today, I'll show you formatRupiah() - a flexible utility that handles...