33 lines
853 B
JavaScript
33 lines
853 B
JavaScript
// Module ID: 4668
|
|
// Function ID: 4669
|
|
// Name: isDateObject
|
|
// Dependencies: [574, 1412]
|
|
|
|
// Module 4668 (isDateObject)
|
|
import callBoundIntrinsic from "callBoundIntrinsic" /* 574 */;
|
|
import hasToStringTagShams from "hasToStringTagShams" /* 1412 */;
|
|
|
|
let closure_0 = callBoundIntrinsic("Date.prototype.getDay");
|
|
let closure_1 = callBoundIntrinsic("Object.prototype.toString");
|
|
let closure_2 = hasToStringTagShams();
|
|
|
|
export default function isDateObject(obj) {
|
|
let tmp = typeof obj === "object";
|
|
if (typeof obj === "object") {
|
|
tmp = null !== obj;
|
|
}
|
|
if (!tmp) {
|
|
return tmp;
|
|
} else if (closure_2) {
|
|
let tmp4 = (function tryDateGetDayCall(arg0) {
|
|
try {
|
|
callback(arg0);
|
|
return true;
|
|
} catch (err) {
|
|
return false;
|
|
}
|
|
})(obj);
|
|
} else {
|
|
tmp4 = "[object Date]" === callback(obj);
|
|
}
|
|
};
|