Newer
Older
framework / node_modules / @babel / runtime / helpers / esm / toPropertyKey.js
@Tiago Leonardo Costa Dias Tiago Leonardo Costa Dias on 13 Mar 2024 208 bytes update
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);
}