registration
This commit is contained in:
25
frontend/style/node_modules/date-fns/eachWeekendOfYear.js
generated
vendored
25
frontend/style/node_modules/date-fns/eachWeekendOfYear.js
generated
vendored
@@ -1,8 +1,10 @@
|
||||
"use strict";
|
||||
exports.eachWeekendOfYear = eachWeekendOfYear;
|
||||
var _index = require("./eachWeekendOfInterval.js");
|
||||
var _index2 = require("./endOfYear.js");
|
||||
var _index3 = require("./startOfYear.js");
|
||||
import { eachWeekendOfInterval } from "./eachWeekendOfInterval.js";
|
||||
import { endOfYear } from "./endOfYear.js";
|
||||
import { startOfYear } from "./startOfYear.js";
|
||||
|
||||
/**
|
||||
* The {@link eachWeekendOfYear} function options.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @name eachWeekendOfYear
|
||||
@@ -13,8 +15,10 @@ var _index3 = require("./startOfYear.js");
|
||||
* Get all the Saturdays and Sundays in the year.
|
||||
*
|
||||
* @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 year
|
||||
* @param options - An object with options
|
||||
*
|
||||
* @returns An array containing all the Saturdays and Sundays
|
||||
*
|
||||
@@ -29,8 +33,11 @@ var _index3 = require("./startOfYear.js");
|
||||
* // ]
|
||||
* ]
|
||||
*/
|
||||
function eachWeekendOfYear(date) {
|
||||
const start = (0, _index3.startOfYear)(date);
|
||||
const end = (0, _index2.endOfYear)(date);
|
||||
return (0, _index.eachWeekendOfInterval)({ start, end });
|
||||
export function eachWeekendOfYear(date, options) {
|
||||
const start = startOfYear(date, options);
|
||||
const end = endOfYear(date, options);
|
||||
return eachWeekendOfInterval({ start, end }, options);
|
||||
}
|
||||
|
||||
// Fallback for modularized imports:
|
||||
export default eachWeekendOfYear;
|
||||
|
||||
Reference in New Issue
Block a user