decord/source/4697_isPropertyKey.js
2026-08-25 06:04:03 +00:00

14 lines
287 B
JavaScript

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