MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / isWeekend

Function isWeekend

services/date.js:25–27  ·  view source on GitHub ↗
(date)

Source from the content-addressed store, hash-verified

23export const isValidDate = (date) => dayjs(date).isValid();
24
25export const isWeekend = (date) => {
26 return WEEKEND.includes(dayjs(date).get('day'));
27};
28
29export const subBusinessDays = (date, days) => {
30 const newDate = dayjs(date);

Callers 1

subBusinessDaysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected