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

17 lines
353 B
JavaScript

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