fix doc comments
This commit is contained in:
parent
c6edce6446
commit
3453fb02b1
1 changed files with 4 additions and 4 deletions
|
@ -241,13 +241,13 @@ Ox.isInt = function(value) {
|
|||
return isFinite(value) && value === Math.floor(value);
|
||||
};
|
||||
|
||||
/*
|
||||
/*@
|
||||
Ox.isInvalidDate <f> Tests if a value is an invalid date
|
||||
(value) -> <b> 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 <f> Tests if a value is a valid date
|
||||
(value) -> <b> 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());
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue