index.js 437 B

12345678910
  1. export default (function (o, c, d) {
  2. c.prototype.isBetween = function (a, b, u, i) {
  3. var dA = d(a);
  4. var dB = d(b);
  5. i = i || '()';
  6. var dAi = i[0] === '(';
  7. var dBi = i[1] === ')';
  8. return (dAi ? this.isAfter(dA, u) : !this.isBefore(dA, u)) && (dBi ? this.isBefore(dB, u) : !this.isAfter(dB, u)) || (dAi ? this.isBefore(dA, u) : !this.isAfter(dA, u)) && (dBi ? this.isAfter(dB, u) : !this.isBefore(dB, u));
  9. };
  10. });