toPropertyKey.js 205 B

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