registration
This commit is contained in:
25
frontend/style/node_modules/date-fns/eachWeekendOfMonth.js
generated
vendored
25
frontend/style/node_modules/date-fns/eachWeekendOfMonth.js
generated
vendored
@@ -1,8 +1,10 @@
|
||||
"use strict";
|
||||
exports.eachWeekendOfMonth = eachWeekendOfMonth;
|
||||
var _index = require("./eachWeekendOfInterval.js");
|
||||
var _index2 = require("./endOfMonth.js");
|
||||
var _index3 = require("./startOfMonth.js");
|
||||
import { eachWeekendOfInterval } from "./eachWeekendOfInterval.js";
|
||||
import { endOfMonth } from "./endOfMonth.js";
|
||||
import { startOfMonth } from "./startOfMonth.js";
|
||||
|
||||
/**
|
||||
* The {@link eachWeekendOfMonth} function options.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name eachWeekendOfMonth
|
||||
@@ -13,8 +15,10 @@ var _index3 = require("./startOfMonth.js");
|
||||
* Get all the Saturdays and Sundays in the given month.
|
||||
*
|
||||
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
|
||||
* @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.
|
||||
*
|
||||
* @param date - The given month
|
||||
* @param options - An object with options
|
||||
*
|
||||
* @returns An array containing all the Saturdays and Sundays
|
||||
*
|
||||
@@ -32,8 +36,11 @@ var _index3 = require("./startOfMonth.js");
|
||||
* // Sun Feb 27 2022 00:00:00
|
||||
* // ]
|
||||
*/
|
||||
function eachWeekendOfMonth(date) {
|
||||
const start = (0, _index3.startOfMonth)(date);
|
||||
const end = (0, _index2.endOfMonth)(date);
|
||||
return (0, _index.eachWeekendOfInterval)({ start, end });
|
||||
export function eachWeekendOfMonth(date, options) {
|
||||
const start = startOfMonth(date, options);
|
||||
const end = endOfMonth(date, options);
|
||||
return eachWeekendOfInterval({ start, end }, options);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default eachWeekendOfMonth;
|
||||
|
||||
Reference in New Issue
Block a user