aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/toPropertyKey.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/@babel/runtime/helpers/toPropertyKey.js')
-rw-r--r--node_modules/@babel/runtime/helpers/toPropertyKey.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/@babel/runtime/helpers/toPropertyKey.js b/node_modules/@babel/runtime/helpers/toPropertyKey.js
new file mode 100644
index 00000000..d4014dd7
--- /dev/null
+++ b/node_modules/@babel/runtime/helpers/toPropertyKey.js
@@ -0,0 +1,11 @@
+var _typeof = require("../helpers/typeof");
+
+function _toPropertyKey(key) {
+ if (_typeof(key) === "symbol") {
+ return key;
+ } else {
+ return String(key);
+ }
+}
+
+module.exports = _toPropertyKey; \ No newline at end of file