43 lines
898 B
JavaScript
43 lines
898 B
JavaScript
// Module ID: 3535
|
|
// Function ID: 3536
|
|
// Name: isLeapYear
|
|
// Dependencies: [3268, 3269]
|
|
// Exports: default
|
|
|
|
// Module 3535 (isLeapYear)
|
|
import _typeof from "_typeof";
|
|
import requiredArgs from "requiredArgs";
|
|
|
|
if (!_typeof) {
|
|
let obj = { default: null };
|
|
obj[0] = _typeof;
|
|
let tmp3 = obj;
|
|
} else {
|
|
tmp3 = _typeof;
|
|
}
|
|
let c0 = tmp3;
|
|
if (!requiredArgs) {
|
|
obj = { default: null };
|
|
obj[0] = requiredArgs;
|
|
let tmp5 = obj;
|
|
} else {
|
|
tmp5 = requiredArgs;
|
|
}
|
|
let closure_1 = tmp5;
|
|
|
|
export default function isLeapYear(arg0) {
|
|
tmp5.default(1, arguments);
|
|
const fullYear = tmp3.default(arg0).getFullYear();
|
|
const result = fullYear % 400;
|
|
let tmp4 = result === 0;
|
|
if (result !== 0) {
|
|
const result1 = fullYear % 4;
|
|
let tmp6 = result1 === 0;
|
|
if (result1 === 0) {
|
|
tmp6 = fullYear % 100 !== 0;
|
|
}
|
|
tmp4 = tmp6;
|
|
}
|
|
return tmp4;
|
|
};
|
|
export default exports.default;
|