summaryrefslogtreecommitdiff
path: root/src/core/utils/currencyFormat.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/utils/currencyFormat.js')
-rw-r--r--src/core/utils/currencyFormat.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/utils/currencyFormat.js b/src/core/utils/currencyFormat.js
index 12b68111..d0eba4c4 100644
--- a/src/core/utils/currencyFormat.js
+++ b/src/core/utils/currencyFormat.js
@@ -1,3 +1,9 @@
+/**
+ * Formats a numeric value as a currency string in Indonesian Rupiah (IDR) format.
+ *
+ * @param {number} value - The numeric value to be formatted as currency.
+ * @returns {string} - The currency string in IDR format.
+ */
const currencyFormat = (value) => {
const currency = new Intl.NumberFormat('id-ID', {
style: 'currency',