frontend/.pnpm-store/v3/files/71/3ff178dd1ee941e999d230ac4a1e79d3c1cefe69480a884cda44fd6a378528c9288e14bcf7df61dfc04fbec8327930c8c4e5cd537a04eb9308aa1af95f3642

9 lines
473 B
Plaintext

import toDate from './toDate';
export default 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 = toDate(comparisonDate);
var original = toDate(date);
return !!(original && comparison && original > comparison);
}