📌  相关文章
📜  如何在javascript代码示例中检查变量是否为日期类型

📅  最后修改于: 2022-03-11 15:02:37.190000             🧑  作者: Mango

代码示例2
export const isDate = date => ((new Date(date) instanceof Date) && !isNaN(new Date(date)) && isNaN(date)) 
// here third check is added to check if user adds values like 1 , 2 etc