Skip to content

@longmo-utils/common / isDate

Function: isDate()

ts
function isDate(arg): boolean;

是否是日期对象

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isDate(new Date()) // true

Released under the MIT License.