This commit is contained in:
newtbot committed 2023-12-21 14:25:31 +08:00
1 parent 694e76951d
commit 071bd25719
5 files changed
+16 -2

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
var validator = require('validator');
function isNumber(data) {
if (validator.isNumeric(data))
{
console.log(data);
}
else
{
console.log("Invalid data");
}
}
module.exports = { isNumber }