Comparing version 2.1.0 to 2.2.0
@@ -40,9 +40,5 @@ function HelloWorld() { | ||
function validate(n) { | ||
return Number.isInteger(n) | ||
} | ||
function randomNumber(n) { | ||
if(!n) callback(new Error("The input doesn't have number!")); | ||
if(!validate(n)) callback(new Error("The input is not a number!")); | ||
if(!Number.isInteger(n)) callback(new Error("The input is not a number!")); | ||
@@ -49,0 +45,0 @@ var number = Math.floor(Math.random() * n) + 1; |
{ | ||
"name": "azl", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1712
36