UNPKG

iso-weeks-year

Version:
10 lines 404 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.firstDayWeek = void 0; const internal_error_1 = require("./error/internal-error"); exports.firstDayWeek = (month, year) => { if (month < 0 || month > 11) throw new internal_error_1.InternalError('Error: invalid month!'); return new Date(year, month).getDay(); }; //# sourceMappingURL=firstDayWeek.js.map