This commit is contained in:
8
js/@babel/runtime/helpers/toPropertyKey.js
Normal file
8
js/@babel/runtime/helpers/toPropertyKey.js
Normal file
@@ -0,0 +1,8 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user