diff options
| author | Wes Bos <wesbos@gmail.com> | 2017-08-11 14:56:13 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2017-08-11 14:56:13 -0400 |
| commit | 416c2cbae0e69b724876d232bf813eefd7550174 (patch) | |
| tree | ce7109c0f61dbeee7077164cb48a4681214e0464 /lib/formatMoney.js | |
| parent | 222ab374d53a206332b1ab51c7c43f6d5dc7a31e (diff) | |
getting there
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(); +} |
