You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
911 B
26 lines
911 B
!(function (e, i) {
|
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
|
module.exports = i();
|
|
} else {
|
|
if ('function' == typeof define && define.amd) {
|
|
define(i);
|
|
} else {
|
|
(e = 'undefined' != typeof globalThis ? globalThis : e || self).dayjs_plugin_isBetween = i();
|
|
}
|
|
}
|
|
})(this, function () {
|
|
'use strict';
|
|
|
|
return function (e, i, t) {
|
|
i.prototype.isBetween = function (e, i, s, f) {
|
|
var n = t(e);
|
|
var o = t(i);
|
|
var r = '(' === (f = f || '()')[0];
|
|
var u = ')' === f[1];
|
|
return (
|
|
((r ? this.isAfter(n, s) : !this.isBefore(n, s)) && (u ? this.isBefore(o, s) : !this.isAfter(o, s))) ||
|
|
((r ? this.isBefore(n, s) : !this.isAfter(n, s)) && (u ? this.isAfter(o, s) : !this.isBefore(o, s)))
|
|
);
|
|
};
|
|
};
|
|
});
|
|
|