'use strict';

var _typeof = require('./typeof-D4ZZ_FlZ.js');

function toPrimitive(t, r) {
  if ("object" != _typeof._typeof(t) || !t) return t;
  var e = t[Symbol.toPrimitive];
  if (void 0 !== e) {
    var i = e.call(t, r);
    if ("object" != _typeof._typeof(i)) return i;
    throw new TypeError("@@toPrimitive must return a primitive value.");
  }
  return ("string" === r ? String : Number)(t);
}

function toPropertyKey(t) {
  var i = toPrimitive(t, "string");
  return "symbol" == _typeof._typeof(i) ? i : i + "";
}

exports.toPropertyKey = toPropertyKey;
//# sourceMappingURL=toPropertyKey-DW-YC76_.js.map
