summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
blob: 3cda5c5c1cc2c79b76830f25de46a1f5e15c233f (plain)
1
2
3
4
5
6
import _typeof from "./typeof.js";
import toPrimitive from "./toPrimitive.js";
export default function toPropertyKey(t) {
  var i = toPrimitive(t, "string");
  return "symbol" == _typeof(i) ? i : i + "";
}