summaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
blob: dbbe92bd9e0b5e0b50d690b6194c46afb65123a8 (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 : String(i);
}