You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
252 B

4 years ago
  1. var _typeof = require("../helpers/typeof");
  2. var toPrimitive = require("./toPrimitive");
  3. function _toPropertyKey(arg) {
  4. var key = toPrimitive(arg, "string");
  5. return _typeof(key) === "symbol" ? key : String(key);
  6. }
  7. module.exports = _toPropertyKey;