1 | "use strict";
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = eachWeekendOfMonth;
|
7 |
|
8 | var _index = _interopRequireDefault(require("../eachWeekendOfInterval/index.js"));
|
9 |
|
10 | var _index2 = _interopRequireDefault(require("../startOfMonth/index.js"));
|
11 |
|
12 | var _index3 = _interopRequireDefault(require("../endOfMonth/index.js"));
|
13 |
|
14 | var _index4 = _interopRequireDefault(require("../_lib/requiredArgs/index.js"));
|
15 |
|
16 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 |
|
45 | function eachWeekendOfMonth(dirtyDate) {
|
46 | (0, _index4.default)(1, arguments);
|
47 | var startDate = (0, _index2.default)(dirtyDate);
|
48 | if (isNaN(startDate)) throw new RangeError('The passed date is invalid');
|
49 | var endDate = (0, _index3.default)(dirtyDate);
|
50 | return (0, _index.default)({
|
51 | start: startDate,
|
52 | end: endDate
|
53 | });
|
54 | }
|
55 |
|
56 | module.exports = exports.default; |
\ | No newline at end of file |