frontend/.pnpm-store/v3/files/ef/028bc9602f40466e18acc96e4ee878fd78c6d127b83a4475f842d3f25a4a1f27e4aec2b3e20394fbad11d6f33c01013eebd7d8c94ffb0e0912be6c88205bd9

22 lines
797 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = isAfter;
var _toDate = _interopRequireDefault(require("./toDate"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function isAfter(date, options) {
// For backwards compatibility:
// isAfter(str [, date]), i.e. `options` could be used as argument for the legacy `date`
var comparisonDate = (options === null || options === void 0 ? void 0 : options.comparisonDate) || options || Date().toString();
var comparison = (0, _toDate.default)(comparisonDate);
var original = (0, _toDate.default)(date);
return !!(original && comparison && original > comparison);
}
module.exports = exports.default;
module.exports.default = exports.default;