Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ranges.some(v => DateUtils.isDayInRange(day, v));
selected: day =>
DateUtils.isDayInRange(day, this.state) ||
this.state.ranges.some(v => DateUtils.isDayInRange(day, v)),
};
const selectedDays = day => DateUtils.isDayInRange(day, this.state) ||
ranges.some(v => DateUtils.isDayInRange(day, v));
this.state.ranges.some(v => DateUtils.isDayInRange(day, v)),
};
this.state.ranges.some(v => DateUtils.isDayInRange(day, v)),
};
ranges.some(v => DateUtils.isDayInRange(day, v));
const dateInRanges = _.flatten(ranges.map(range => [range.from, range.to]));
this.state.ranges.some(v => DateUtils.isDayInRange(day, v)),
};
selected: day =>
DateUtils.isDayInRange(day, this.state) ||
this.state.ranges.some(v => DateUtils.isDayInRange(day, v)),
};
selectedDays = day =>
DateUtils.isDayInRange(day, dates) ||
ranges.some(v => DateUtils.isDayInRange(day, v));
const dateInRanges = _.flatten(ranges.map(range => [range.from, range.to]));
selected: day =>
DateUtils.isDayInRange(day, this.state) ||
this.state.ranges.some(v => DateUtils.isDayInRange(day, v)),
};