Rename server => modules

This commit is contained in:
Michael Jackson
2018-07-31 10:13:26 -07:00
parent 135da0fdc5
commit bef8b2ebee
104 changed files with 13 additions and 13 deletions

View File

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