toPropertyKey.js 335 B

1234567
  1. var _typeof = require("./typeof.js")["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, module.exports.__esModule = true, module.exports["default"] = module.exports;