@jdaudier/number-formatter
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -9,3 +9,3 @@ 'use strict'; | ||
module.exports = function(number) { | ||
return number.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, '$1,'); | ||
return number.toLocaleString('en-US'); | ||
}; |
{ | ||
"name": "@jdaudier/number-formatter", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Formats number", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35365