decord/source/4442_isPropertyKey.js

15 lines
287 B
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 4442
// Function ID: 4443
2026-07-29 08:29:29 +00:00
// Name: isPropertyKey
// Dependencies: []
2026-08-24 06:08:38 +00:00
// Module 4442 (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;
};