36 lines
828 B
JavaScript
36 lines
828 B
JavaScript
// Module ID: 3535
|
|
// Function ID: 3536
|
|
// Name: endOfMonth
|
|
// Dependencies: [3334, 3335]
|
|
// Exports: default
|
|
|
|
// Module 3535 (endOfMonth)
|
|
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 endOfMonth(arg0) {
|
|
tmp5.default(1, arguments);
|
|
const defaultResult1 = tmp3.default(arg0);
|
|
const month = defaultResult1.getMonth();
|
|
defaultResult1.setFullYear(defaultResult1.getFullYear(), month + 1, 0);
|
|
defaultResult1.setHours(23, 59, 59, 999);
|
|
return defaultResult1;
|
|
};
|
|
export default exports.default;
|