diff options
Diffstat (limited to 'src/core/utils/currencyFormat.js')
| -rw-r--r-- | src/core/utils/currencyFormat.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/utils/currencyFormat.js b/src/core/utils/currencyFormat.js index dadeaec6..31f4a8dc 100644 --- a/src/core/utils/currencyFormat.js +++ b/src/core/utils/currencyFormat.js @@ -1,8 +1,10 @@ -export default function currencyFormat(value) { +const currencyFormat = (value) => { const currency = new Intl.NumberFormat('id-ID', { style: 'currency', currency: 'IDR', maximumFractionDigits: 0 - }); - return currency.format(value); -}
\ No newline at end of file + }) + return currency.format(value) +} + +export default currencyFormat
\ No newline at end of file |
