decord/source/5679_toPropertyKey.js

16 lines
334 B
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 5679
// Function ID: 5680
2026-07-20 16:05:17 +00:00
// Name: toPropertyKey
2026-08-12 06:57:52 +00:00
// Dependencies: [5680, 5681]
2026-07-20 16:05:17 +00:00
2026-08-12 06:57:52 +00:00
// Module 5679 (toPropertyKey)
2026-07-20 16:05:17 +00:00
export default function toPropertyKey(arg0) {
2026-08-12 06:57:52 +00:00
const tmp = require(5680) /* toPrimitive */(arg0, "string");
2026-07-20 16:05:17 +00:00
let text = tmp;
if ("symbol" != obj.default(tmp)) {
text = `${tmp}`;
}
return text;
};