diff --git a/source/Ox/js/Type.js b/source/Ox/js/Type.js index 4c7b7737..b66619db 100644 --- a/source/Ox/js/Type.js +++ b/source/Ox/js/Type.js @@ -241,13 +241,13 @@ Ox.isInt = function(value) { return isFinite(value) && value === Math.floor(value); }; -/* +/*@ Ox.isInvalidDate Tests if a value is an invalid date (value) -> True if the value is an invalid date value <*> Any value > Ox.isInvalidDate(new Date('foo')) true -*/ +@*/ Ox.isInvalidDate = function(value) { return Ox.isDate(value) && Ox.isNaN(value.getTime()); }; @@ -382,13 +382,13 @@ Ox.isUndefined = function(value) { return Ox.typeOf(value) == 'undefined'; }; -/* +/*@ Ox.isValidDate Tests if a value is a valid date (value) -> True if the value is a valid date value <*> Any value > Ox.isValidDate(new Date()) true -*/ +@*/ Ox.isValidDate = function(value) { return Ox.isDate(value) && !Ox.isNaN(value.getTime()); };