aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/internals/own-keys.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/internals/own-keys.js')
-rw-r--r--node_modules/core-js/internals/own-keys.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/core-js/internals/own-keys.js b/node_modules/core-js/internals/own-keys.js
new file mode 100644
index 0000000..4c3d8b5
--- /dev/null
+++ b/node_modules/core-js/internals/own-keys.js
@@ -0,0 +1,11 @@
+var getBuiltIn = require('../internals/get-built-in');
+var getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');
+var getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');
+var anObject = require('../internals/an-object');
+
+// all object keys, includes non-enumerable and symbols
+module.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
+};