wzp
2022-02-21 2667d6931e0f85f3dda26238330d9c45385025cf
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;
  };
});