decord/source/7090_toPropertyKey.js
2026-08-24 06:08:38 +00:00

17 lines
365 B
JavaScript

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