Files
discord-decomp/_bundle/isArguments.js
T
2026-11-01 12:12:55 +02:00

50 lines
1.4 KiB
JavaScript

// Metro module 1392 (f1393).
import * as _hasToStringTagShams from "./hasToStringTagShams";
import * as _callBoundIntrinsic from "./callBoundIntrinsic";
let c1153_0 = _hasToStringTagShams();
let c1153_1 = _callBoundIntrinsic("Object.prototype.toString");
const isArguments2 = function isArguments(a0) {
let r4 = c1153_0;
if (c1153_0) {
r4 = a0;
}
if (r4) {
r4 = typeof a0 === "object";
}
if (r4) {
r4 = Symbol.toStringTag in a0;
}
return r4 ? !r4 : c1153_1(a0) === "[object Arguments]";
};
let isLegacyArguments = function isArguments(a0) {
let r6 = c1153_0;
if (c1153_0) {
r6 = a0;
}
if (r6) {
r6 = typeof a0 === "object";
}
if (r6) {
r6 = Symbol.toStringTag in a0;
}
return !!(r6 ? !r6 : c1153_1(a0) === "[object Arguments]") || a0 !== null && typeof a0 === "object" && "length" in a0 && typeof a0.length === "number" && a0.length >= 0 && c1153_1(a0) !== "[object Array]" && "callee" in a0 && c1153_1(a0.callee) === "[object Function]";
};
const r1 = (function() {
let r9 = c1153_0;
if (c1153_0) {
r9 = arguments;
}
if (r9) {
r9 = typeof arguments === "object";
}
if (r9) {
r9 = Symbol.toStringTag in arguments;
}
return r9 ? !r9 : c1153_1(arguments) === "[object Arguments]";
})();
isArguments2.isLegacyArguments = isLegacyArguments;
if (r1) {
isLegacyArguments = isArguments2;
}
module.exports = isLegacyArguments;