@longmo-utils/common / isDate
Function: isDate()
ts
function isDate(arg): boolean;是否是日期对象
Parameters
| Parameter | Type | Description |
|---|---|---|
arg | any | 参数 |
Returns
boolean
true|false
Example
ts
isDate(new Date()) // true