[Fix] Fixed isInteger() and isFloat() functions

This commit is contained in:
Robert von Burg 2020-11-04 10:45:33 +01:00
parent c54ab452b0
commit 6ea8271f1b
2 changed files with 3 additions and 3 deletions

View File

@ -314,11 +314,11 @@ Strolch = {
}, },
isFloat: function (val) { isFloat: function (val) {
return Number(parseFloat(val)) === val; return parseFloat(val).toString() === val;
}, },
isInteger: function (val) { isInteger: function (val) {
return Number(parseInt(val)) === val; return parseInt(val).toString() === val;
}, },
isDate: function (val) { isDate: function (val) {

View File

@ -1,6 +1,6 @@
{ {
"name": "strolchjs", "name": "strolchjs",
"version": "0.4.2", "version": "0.4.3",
"main": "strolch.js", "main": "strolch.js",
"ignore": [ "ignore": [
"**/.*", "**/.*",