17 lines
365 B
JavaScript
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;
|
|
};
|