7 lines
181 B
JavaScript
7 lines
181 B
JavaScript
export default (function (o, c) {
|
|
var proto = c.prototype;
|
|
|
|
proto.isLeapYear = function () {
|
|
return this.$y % 4 === 0 && this.$y % 100 !== 0 || this.$y % 400 === 0;
|
|
};
|
|
}); |