Methods
isDate(value) → {Boolean}
Returns if a value is a date.
Parameters:
Name | Type | Description |
---|---|---|
value |
* | the value to check |
Returns:
true if value is a date
- Type
- Boolean
Example
if( isDate(val) ){
return val.toISOString();
}