UNPKG
@jsenv/plugin-transpilation
Version:
latest (1.5.59)
1.5.59
1.5.52
1.5.51
1.5.50
1.5.21
1.5.20
1.5.19
1.5.18
1.5.17
1.5.16
1.5.15
1.5.14
1.5.9
1.5.8
1.5.7
1.5.6
1.5.2
1.5.1
1.5.0
1.4.96
1.4.95
1.4.94
1.4.93
1.4.92
1.4.91
1.4.89
1.4.88
1.4.87
1.4.86
1.4.85
1.4.84
1.4.83
1.4.82
1.4.53
1.4.24
1.4.23
1.4.22
1.4.21
1.4.20
1.4.19
1.4.18
1.4.17
1.4.16
1.4.15
1.4.14
1.4.13
1.4.12
1.4.11
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.16
1.3.15
1.3.14
1.3.13
1.3.12
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
TODO
github.com/jsenv/core
jsenv/core
@jsenv/plugin-transpilation
/
src
/
babel
/
babel_helper_directory
/
babel_helpers
/
toPropertyKey
/
toPropertyKey.js
11 lines
(7 loc)
•
271 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/* @minVersion 7.1.5 */
// https://tc39.es/ecma262/#sec-topropertykey
import
toPrimitive
from
"../toPrimitive/toPrimitive.js"
;
export
default
function
toPropertyKey
(
arg
) {
var
key =
toPrimitive
(arg,
"string"
);
return
typeof
key ===
"symbol"
? key :
String
(key); }