IsSameOrBefore
IsSameOrBefore 플러그인은 .isSameOrBefore()
API를 추가하여 특정 날짜가 다른 날짜와 같거나 이전인지 여부를 boolean
값으로 반환합니다.
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');