toPropertyKey.js 364 B

1234567891011
  1. var _typeof = require("@babel/runtime-corejs3/helpers/typeof")["default"];
  2. var toPrimitive = require("./toPrimitive.js");
  3. function _toPropertyKey(arg) {
  4. var key = toPrimitive(arg, "string");
  5. return _typeof(key) === "symbol" ? key : String(key);
  6. }
  7. module.exports = _toPropertyKey;
  8. module.exports["default"] = module.exports, module.exports.__esModule = true;