UNPKG

read-gedcom

Version:
16 lines 469 B
import { parseDate } from '../parse'; import { SelectionDate } from './internal'; export class SelectionDatePeriod extends SelectionDate { valueAsDatePeriod() { return this.value().map(v => { const date = parseDate(v); if (date !== null && date.isDatePeriod) { return date; } else { return null; } }); } } //# sourceMappingURL=SelectionDatePeriod.js.map