IsSameOrBefore
IsSameOrBefore aggiunge l'API .isSameOrBefore()
che restituisce un valore booleano indicante se una data è uguale o precedente a un'altra data.
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');