A simple TypeScript helper for converting numbers to Indonesian words. Inspired by terbilang-js by Naufal Rabbani.
You can include the terbilang.ts file in your project directly.
// Return String
terbilang(1); // Satu
terbilang(10); // Sepuluh
terbilang(100); // Seratus
terbilang(1000); // Seribu
terbilang(10000); // Sepuluh Ribu