Use single quotes :P

This commit is contained in:
Michael Jackson
2018-12-17 09:38:05 -08:00
parent ada37035cd
commit 19b2e5574b
93 changed files with 792 additions and 791 deletions

View File

@ -1,12 +1,12 @@
function formatNumber(n) {
const digits = String(n).split("");
const digits = String(n).split('');
const groups = [];
while (digits.length) {
groups.unshift(digits.splice(-3).join(""));
groups.unshift(digits.splice(-3).join(''));
}
return groups.join(",");
return groups.join(',');
}
module.exports = formatNumber;