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.

6 lines
227 B

3 months ago
  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 };