IsSameOrBefore
IsSameOrBefore は、ある日付が別の日付と同一であるか、またはそれ以前であるかを判定する .isSameOrBefore()
API を提供します。
javascript
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore');
// import isSameOrBefore from 'dayjs/plugin/isSameOrBefore' // ES 2015
dayjs.extend(isSameOrBefore);
dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year');