You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 lines
232 B

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