UNPKG

react-daterange-picker

Version:
11 lines (8 loc) 269 B
import moment from '../moment-range'; export default function (previousValue, nextValue) { const areBothMoment = moment.isMoment(previousValue) && moment.isMoment(nextValue); if (!areBothMoment) { return false; } return previousValue.isSame(nextValue); }