'use strict';

const _typeof = require('./typeof.cjs');
const toPrimitive = require('./toPrimitive.cjs');

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

module.exports = toPropertyKey;
