IsToday
IsToday 添加 .isToday()
API 来指示 Day.js 对象是否是今天。
¥IsToday adds .isToday()
API to indicates whether the Day.js object is today or not.
var isToday = require("dayjs/plugin/isToday");
// import isToday from 'dayjs/plugin/isToday' // ES 2015
dayjs.extend(isToday);
dayjs().isToday(); // true