decord/source/699_isKey.js

46 lines
942 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 699
2026-07-25 08:10:48 +00:00
// Function ID: 8708
2026-07-20 16:05:17 +00:00
// Name: isKey
2026-07-23 10:11:24 +00:00
// Dependencies: [591, 576]
2026-07-20 16:05:17 +00:00
// Module 699 (isKey)
2026-07-23 10:11:24 +00:00
const re2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/;
const re3 = /^\w*$/;
2026-07-20 16:05:17 +00:00
export default function isKey(arg0, arg1) {
2026-07-23 10:11:24 +00:00
if (require(591)(arg0)) {
2026-07-20 16:05:17 +00:00
return false;
} else {
let tmp2 = "number" !== tmp;
if (tmp2) {
tmp2 = "symbol" !== tmp;
}
if (tmp2) {
tmp2 = "boolean" !== tmp;
}
if (tmp2) {
tmp2 = null != arg0;
}
if (tmp2) {
2026-07-23 10:11:24 +00:00
tmp2 = !require(576) /* isSymbol */(arg0);
2026-07-20 16:05:17 +00:00
}
let tmp6 = !tmp2;
if (tmp2) {
let isMatch = regex2.test(arg0);
if (!isMatch) {
isMatch = !regex.test(arg0);
}
if (!isMatch) {
let tmp11 = null != arg1;
if (tmp11) {
const _Object = Object;
tmp11 = arg0 in Object(arg1);
}
isMatch = tmp11;
}
tmp6 = isMatch;
}
return tmp6;
}
};