summaryrefslogtreecommitdiff
path: root/src/node_modules/es-abstract/2018/IsPropertyKey.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_modules/es-abstract/2018/IsPropertyKey.js')
-rw-r--r--src/node_modules/es-abstract/2018/IsPropertyKey.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node_modules/es-abstract/2018/IsPropertyKey.js b/src/node_modules/es-abstract/2018/IsPropertyKey.js
new file mode 100644
index 0000000..74b8d95
--- /dev/null
+++ b/src/node_modules/es-abstract/2018/IsPropertyKey.js
@@ -0,0 +1,7 @@
+'use strict';
+
+// https://www.ecma-international.org/ecma-262/6.0/#sec-ispropertykey
+
+module.exports = function IsPropertyKey(argument) {
+ return typeof argument === 'string' || typeof argument === 'symbol';
+};