IsSameOrBefore
IsSameOrBefore adds .isSameOrBefore()
API to returns a boolean
indicating if a date is same or before another date.
var isSameOrBefore = require('dayjs/plugin/isSameOrBefore')
dayjs.extend(isSameOrBefore)
dayjs('2010-10-20').isSameOrBefore('2010-10-19', 'year')