decord/source/758_isKeyable.js

21 lines
405 B
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 758
// Function ID: 759
// Name: isKeyable
// Dependencies: []
// Module 758 (isKeyable)
2026-08-04 21:03:28 +00:00
export default function isKeyable(str) {
if (typeof str !== "string") {
if (typeof str !== "number") {
if (typeof str !== "symbol") {
if (typeof str !== "boolean") {
let tmp = null === str;
2026-07-29 08:29:29 +00:00
}
return tmp;
}
}
}
2026-08-04 21:03:28 +00:00
tmp = "__proto__" !== str;
2026-07-29 08:29:29 +00:00
};