decord/source/8_toPropertyKey.js

16 lines
319 B
JavaScript
Raw Normal View History

2026-07-20 16:05:17 +00:00
// Module ID: 8
// Function ID: 144
// Name: toPropertyKey
2026-07-23 10:11:24 +00:00
// Dependencies: [9, 10]
2026-07-20 16:05:17 +00:00
// Module 8 (toPropertyKey)
export default function toPropertyKey(arg0) {
2026-07-23 10:11:24 +00:00
const tmp = require(9) /* toPrimitive */(arg0, "string");
2026-07-20 16:05:17 +00:00
let text = tmp;
if ("symbol" != obj.default(tmp)) {
text = `${tmp}`;
}
return text;
};