API reference
isBusinessDay
API index · Input types and conventions · Installation
isBusinessDay(value, options?) → boolean
Check whether the value's own local weekday is absent from weekendDays. It is the exact inverse of isWeekend under the same valid configuration.
import { isBusinessDay } from '@frantss/temporal-fns';
isBusinessDay(Temporal.PlainDate.from('2026-10-23')); // => true
isBusinessDay(Temporal.PlainDate.from('2026-10-24')); // => false
isBusinessDay(Temporal.PlainDate.from('2026-10-25'), { weekendDays: [5, 6] }); // => true
isBusinessDay(Temporal.PlainDate.from('2026-10-24'), { weekendDays: [] }); // => trueRelated: isWeekend, addBusinessDays, differenceInBusinessDays.
Behaviors: BUS-004: Weekend and business predicates are exact inverses; BUS-016: Weekend predicates use the value's own local date; BUS-017: All weekend consumers validate a configuration with no working day.