UNPKG
@honor-minigame/cli
Version:
latest (1.2.6)
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
honor minigame pack cli
@honor-minigame/cli
/
weixin
/
wx-unity-babel
/
@babel
/
runtime
/
helpers
/
toPropertyKey.js
8 lines
(7 loc)
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
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;