Namespace: Basic:isDate

Basic:isDate

Source:

Methods

isDate(value) → {Boolean}

Returns if a value is a date.

Parameters:
Name Type Description
value *

the value to check

Source:
Returns:
true if value is a date
Type
Boolean
Example
if( isDate(val) ){
  return val.toISOString();
}