decord/source/4635_isPropertyKey.js
2026-08-12 06:57:52 +00:00

14 lines
287 B
JavaScript

// Module ID: 4635
// Function ID: 4636
// Name: isPropertyKey
// Dependencies: []
// Module 4635 (isPropertyKey)
export default function isPropertyKey(str) {
let tmp = typeof str === "string";
if (typeof str !== "string") {
tmp = typeof str === "symbol";
}
return tmp;
};