Skip to main content

Function: isOnOrBefore()

isOnOrBefore(a, b): boolean

Defined in: src/lib/dates/index.ts:157

Whether a falls on or before b (inclusive). Equal dates return true.

Parameters

a

CalendarDate

The date being tested.

b

CalendarDate

The boundary date.

Returns

boolean

true if a <= b by calendar day.