decord/source/5812_toPropertyKey.js
2026-08-26 06:04:24 +00:00

17 lines
365 B
JavaScript

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