MCPcopy
hub / github.com/chartbrew/chartbrew / getWeekdayNumber

Function getWeekdayNumber

server/modules/scheduleWeekdays.js:11–21  ·  view source on GitHub ↗
(dayOfWeek)

Source from the content-addressed store, hash-verified

9};
10
11function getWeekdayNumber(dayOfWeek) {
12 if (typeof dayOfWeek === "number") {
13 return dayOfWeek;
14 }
15
16 if (typeof dayOfWeek === "string") {
17 return WEEKDAYS[dayOfWeek.toLowerCase()];
18 }
19
20 return null;
21}
22
23function shouldRunOnWeekday(daysOfWeek, now) {
24 if (!Array.isArray(daysOfWeek)) {

Callers 4

shouldRunOnWeekdayFunction · 0.85
updateDashboardsFunction · 0.85
checkSnapshotsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected