decord/source/5746_toPropertyKey.js
2026-08-25 06:04:03 +00:00

17 lines
365 B
JavaScript

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