From 416c2cbae0e69b724876d232bf813eefd7550174 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Fri, 11 Aug 2017 14:56:13 -0400 Subject: getting there --- lib/formatMoney.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 lib/formatMoney.js (limited to 'lib') 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(); +} -- cgit v1.3