decord/source/4576_isPropertyKey.js

15 lines
287 B
JavaScript
Raw Normal View History

2026-08-06 08:05:19 +00:00
// Module ID: 4576
// Function ID: 4577
2026-07-29 08:29:29 +00:00
// Name: isPropertyKey
// Dependencies: []
2026-08-06 08:05:19 +00:00
// Module 4576 (isPropertyKey)
2026-07-29 08:29:29 +00:00
2026-08-04 21:03:28 +00:00
export default function isPropertyKey(str) {
let tmp = typeof str === "string";
if (typeof str !== "string") {
tmp = typeof str === "symbol";
2026-07-29 08:29:29 +00:00
}
return tmp;
};