Check whether a date is in the current Monday-first local calendar week.
Usage:
import { isThisWeek } from "mazey";const ret = isThisWeek(new Date());console.log(ret); Copy
import { isThisWeek } from "mazey";const ret = isThisWeek(new Date());console.log(ret);
Output:
true Copy
true
A Date, millisecond timestamp, or string accepted by isValidDate.
Date
isValidDate
Whether the value is in the current local week. Invalid input returns false.
false
The week begins on Monday and ends before the following Monday. Boundaries use local time and a half-open range.
Check whether a date is in the current Monday-first local calendar week.
Usage:
Output: