wzp
2022-11-21 f29dfb68a705ab9f37ed924fc82d6fd414c1c78c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
export default (function (o, c) {
  var proto = c.prototype;
 
  proto.isoWeeksInYear = function () {
    var isLeapYear = this.isLeapYear();
    var last = this.endOf('y');
    var day = last.day();
 
    if (day === 4 || isLeapYear && day === 5) {
      return 53;
    }
 
    return 52;
  };
});