toPropertyKey.js (222B)
1 import _typeof from "./typeof.js"; 2 import toPrimitive from "./toPrimitive.js"; 3 export default function _toPropertyKey(arg) { 4 var key = toPrimitive(arg, "string"); 5 return _typeof(key) === "symbol" ? key : String(key); 6 }