Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 465 Bytes

is-equal.md

File metadata and controls

14 lines (11 loc) · 465 Bytes

isEqual

This indicates whether the DayjsRange object is the same as the other supplied Date range.

Example

import dayjsRange from 'dayjs-range-extend';

const dateRangeFirst = dayjsRange('2022-01-01', '2022-01-05');
const dateRangeSecond = dayjsRange('2022-01-01', '2022-01-05');
const dateRangeThird = dayjsRange('2022-01-03', '2022-01-07');

dateRangeFirst.isEqual(dateRangeSecond); // => true
dateRangeFirst.isEqual(dateRangeThird); // => false