summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2017-08-11 14:56:13 -0400
committerWes Bos <wesbos@gmail.com>2017-08-11 14:56:13 -0400
commit416c2cbae0e69b724876d232bf813eefd7550174 (patch)
treece7109c0f61dbeee7077164cb48a4681214e0464 /lib
parent222ab374d53a206332b1ab51c7c43f6d5dc7a31e (diff)
getting there
Diffstat (limited to 'lib')
-rw-r--r--lib/formatMoney.js3
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();
+}