chache/@babel/runtime/helpers/toPropertyKey.js
2024-01-16 22:53:42 +08:00

8 lines
227 B
JavaScript

var _typeof = require("./typeof"),
toPrimitive = require("./toPrimitive");
function _toPropertyKey(r) {
var t = toPrimitive(r, "string");
return "symbol" === _typeof(t) ? t : String(t);
}
module.exports = _toPropertyKey;