Skip to main content

Function: rangeOverlaps()

rangeOverlaps(rangeLeft, rangeRight, dateLib): boolean

Determines whether a given range overlaps with another range.

Parameters

ParameterTypeDefault value
rangeLeft{ from: Date; to: Date; }undefined
rangeLeft.fromDateundefined
rangeLeft.toDateundefined
rangeRight{ from: Date; to: Date; }undefined
rangeRight.fromDateundefined
rangeRight.toDateundefined
dateLibDateLibdefaultDateLib

Returns

boolean

Since

9.2.2

Defined in

src/utils/rangeOverlaps.ts:11