decord/source/5680_toPropertyKey.js

16 lines
334 B
JavaScript
Raw Normal View History

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