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

Function isValidDate

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

Source from the content-addressed store, hash-verified

21};
22
23export const isValidDate = (date) => dayjs(date).isValid();
24
25export const isWeekend = (date) => {
26 return WEEKEND.includes(dayjs(date).get('day'));

Callers 1

ActionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected