decord/source/43_toPropertyKey.js
2026-07-29 08:29:29 +00:00

15 lines
322 B
JavaScript

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