dayjs-range-extend
v1.0.4
Published
Range extends For dayjs
Downloads
6,066
Maintainers
Readme
Description
Installation
$ npm i --save dayjs-range-extend
How to use
import dayjsRange from 'dayjs-range-extend';
const date_range_first = dayjsRange('2022-01-01', '2022-01-05');
const date_range_second = dayjsRange('2022-01-04', '2022-01-10');
console.log(
date_range_first.isOverlap(date_range_second);
); // => true
Documentaion
- dayjsRange
- isValidRange
- clone
- isOverlap
- isEqual
- addStartRange
- addEndRange
- subtractStartRange
- subtractEndRange