UNPKG

nodemod

Version:

A collection of node modules for The Really Project

7 lines 279 B
export function toValidWeekday(weekday) { if (weekday >= 0 && weekday < 7) return Math.abs(weekday); const weekdayOffset = weekday < 0 ? 7 * Math.ceil(Math.abs(weekday)) : 0; return (weekdayOffset + weekday) % 7; } //# sourceMappingURL=to-valid-weekday.js.map