toPropertyKey.js 240 B

123456
  1. import _typeof from "@babel/runtime/helpers/typeof";
  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. }