UNPKG

react-dates

Version:

A responsive and accessible date range picker component built with React

9 lines (6 loc) 230 B
import moment from 'moment'; import isSameDay from './isSameDay'; export default function isInclusivelyAfterDay(a, b) { if (!moment.isMoment(a) || !moment.isMoment(b)) return false; return a.isAfter(b) || isSameDay(a, b); }