decord/source/4526_isArguments.js

37 lines
820 B
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 4526
// Function ID: 4527
2026-07-29 08:29:29 +00:00
// Name: isArguments
// Dependencies: []
2026-08-05 07:35:12 +00:00
// Module 4526 (isArguments)
2026-07-29 08:29:29 +00:00
2026-08-04 21:03:28 +00:00
export default function isArguments(obj) {
2026-07-29 08:29:29 +00:00
const call = toString.call;
2026-08-04 21:03:28 +00:00
const tmp2 = typeof call === "unknown" ? toString() : call(obj);
2026-07-29 08:29:29 +00:00
let tmp3 = "[object Arguments]" === tmp2;
if (!tmp3) {
let tmp4 = "[object Array]" !== tmp2;
if (tmp4) {
2026-08-04 21:03:28 +00:00
tmp4 = null !== obj;
2026-07-29 08:29:29 +00:00
}
if (tmp4) {
2026-08-04 21:03:28 +00:00
tmp4 = typeof obj === "object";
2026-07-29 08:29:29 +00:00
}
if (tmp4) {
2026-08-04 21:03:28 +00:00
tmp4 = typeof obj.length === "number";
2026-07-29 08:29:29 +00:00
}
if (tmp4) {
2026-08-04 21:03:28 +00:00
tmp4 = obj.length >= 0;
2026-07-29 08:29:29 +00:00
}
if (!tmp4) {
tmp3 = tmp4;
} else {
const call2 = tmp.call;
2026-08-04 21:03:28 +00:00
let str2 = obj.callee;
2026-07-29 08:29:29 +00:00
str2 = "[object Function]";
const tmp6 = typeof call2 === "unknown" ? tmp() : call2(str2);
}
}
return tmp3;
};