diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 10e8fedb..0f83224e 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -206,9 +206,11 @@ Ox.isInt Tests if a value is an integer true > Ox.isInt(0.5) false + > Ox.isInt(Infinity) + false @*/ Ox.isInt = function(value) { - return value === Math.floor(value); + return isFinite(value) && value === Math.floor(value); }; /*@