SudoSOS Back-end API / helpers / isDate
Function: isDate() ​
ts
function isDate(date, canBeUndefined?): boolean;Returns whether a given date string is actually a date
Parameters ​
| Parameter | Type | Description |
|---|---|---|
date | any | string - The date string |
canBeUndefined? | boolean | boolean - Whether number is also allowed to be undefined |
Returns ​
boolean