decord/source/5701_toPropertyKey.js
2026-08-14 17:33:39 +00:00

15 lines
334 B
JavaScript

// Module ID: 5701
// Function ID: 5702
// Name: toPropertyKey
// Dependencies: [5702, 5703]
// Module 5701 (toPropertyKey)
export default function toPropertyKey(arg0) {
const tmp = require(5702) /* toPrimitive */(arg0, "string");
let text = tmp;
if ("symbol" != obj.default(tmp)) {
text = `${tmp}`;
}
return text;
};