toPropertyKey.js 227 B

1234567
  1. import _typeof from "./typeof.js";
  2. import toPrimitive from "./toPrimitive.js";
  3. function toPropertyKey(t) {
  4. var i = toPrimitive(t, "string");
  5. return "symbol" == _typeof(i) ? i : i + "";
  6. }
  7. export { toPropertyKey as default };