diff options
Diffstat (limited to 'lib/formatMoney.js')
| -rw-r--r-- | lib/formatMoney.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/formatMoney.js b/lib/formatMoney.js new file mode 100644 index 0000000..edddf48 --- /dev/null +++ b/lib/formatMoney.js @@ -0,0 +1,3 @@ +export default function(amount) { + return '$' + (amount / 100).toLocaleString(); +} |
