You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
639 B
22 lines
639 B
1 year ago
|
!(function (e, n) {
|
||
|
if ('object' == typeof exports && 'undefined' != typeof module) {
|
||
|
module.exports = n();
|
||
|
} else {
|
||
|
if ('function' == typeof define && define.amd) {
|
||
|
define(n);
|
||
|
} else {
|
||
|
(e = 'undefined' != typeof globalThis ? globalThis : e || self).dayjs_plugin_isoWeeksInYear = n();
|
||
|
}
|
||
|
}
|
||
|
})(this, function () {
|
||
|
'use strict';
|
||
|
|
||
|
return function (e, n) {
|
||
|
n.prototype.isoWeeksInYear = function () {
|
||
|
var e = this.isLeapYear();
|
||
|
var n = this.endOf('y').day();
|
||
|
return 4 === n || (e && 5 === n) ? 53 : 52;
|
||
|
};
|
||
|
};
|
||
|
});
|