summaryrefslogtreecommitdiffstats
path: root/node_modules/object-keys/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/object-keys/index.js')
-rw-r--r--node_modules/object-keys/index.js32
1 files changed, 0 insertions, 32 deletions
diff --git a/node_modules/object-keys/index.js b/node_modules/object-keys/index.js
deleted file mode 100644
index a43807d..0000000
--- a/node_modules/object-keys/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-'use strict';
-
-var slice = Array.prototype.slice;
-var isArgs = require('./isArguments');
-
-var origKeys = Object.keys;
-var keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation');
-
-var originalKeys = Object.keys;
-
-keysShim.shim = function shimObjectKeys() {
- if (Object.keys) {
- var keysWorksWithArguments = (function () {
- // Safari 5.0 bug
- var args = Object.keys(arguments);
- return args && args.length === arguments.length;
- }(1, 2));
- if (!keysWorksWithArguments) {
- Object.keys = function keys(object) { // eslint-disable-line func-name-matching
- if (isArgs(object)) {
- return originalKeys(slice.call(object));
- }
- return originalKeys(object);
- };
- }
- } else {
- Object.keys = keysShim;
- }
- return Object.keys || keysShim;
-};
-
-module.exports = keysShim;