Comparing version 0.0.1 to 0.0.2
module.exports = function (n) { | ||
var nInt = parseInt(n, 10); | ||
if (nInt === NaN) { | ||
if (Number.isNaN(nInt)) { | ||
throw new Error('not a number'); | ||
@@ -22,2 +22,2 @@ } | ||
} | ||
}; | ||
}; |
{ | ||
"name": "add-commas", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Add commas to a number", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
"author": "Eric Capps", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"bugs": { | ||
@@ -21,0 +21,0 @@ "url": "https://github.com/cappslock/add-commas/issues" |
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
4891
0
57