UNPKG

react-daterange-picker-onedesert

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