UNPKG

240 BJavaScriptView Raw
1import _typeof from "@babel/runtime/helpers/typeof";
2import toPrimitive from "./toPrimitive.js";
3export default function _toPropertyKey(arg) {
4 var key = toPrimitive(arg, "string");
5 return _typeof(key) === "symbol" ? key : String(key);
6}
\No newline at end of file