判断是否为moment对象

4,172 阅读1分钟
isMoment

moment.isMoment(new Date()) // false
moment.isMoment(moment()) // true

来源链接:www.jianshu.com/p/64eec906b…