I noticed a module called add-commas in the codebase that may not be needed.
Browsers already have a method called Number.prototype.toLocaleString() which formats numbers according to the user's locale, i.e. "5,000" for en-US and "5.000" for European locales.
I noticed a module called
add-commas
in the codebase that may not be needed.Browsers already have a method called Number.prototype.toLocaleString() which formats numbers according to the user's locale, i.e. "5,000" for en-US and "5.000" for European locales.
It's also got pretty good browser support: http://caniuse.com/#feat=internationalization
Would you be interested in a PR for this?