37 lines
947 B
JavaScript
37 lines
947 B
JavaScript
// Module ID: 3566
|
|
// Function ID: 3567
|
|
// Name: differenceInCalendarMonths
|
|
// Dependencies: [3380, 3381]
|
|
// Exports: default
|
|
|
|
// Module 3566 (differenceInCalendarMonths)
|
|
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 differenceInCalendarMonths(arg0, arg1) {
|
|
tmp5.default(2, arguments);
|
|
const defaultResult1 = tmp3.default(arg0);
|
|
const defaultResult2 = tmp3.default(arg1);
|
|
const fullYear = defaultResult1.getFullYear();
|
|
const diff = fullYear - defaultResult2.getFullYear();
|
|
const month = defaultResult1.getMonth();
|
|
return 12 * diff + (month - defaultResult2.getMonth());
|
|
};
|
|
export default exports.default;
|