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.
|
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; |
|
}; |
|
}); |