UNPKG

@skhemata/skhemata-form

Version:

Skhemata Form Web Component. This web component can be used as base web component when working with forms and inputs.

9 lines 340 B
import assertString from './util/assertString'; import toDate from './toDate'; export default function isAfter(str, date = String(new Date())) { assertString(str); const comparison = toDate(date); const original = toDate(str); return !!(original && comparison && original > comparison); } //# sourceMappingURL=isAfter.js.map