diff options
Diffstat (limited to 'node_modules/deep-equal/lib/keys.js')
-rw-r--r-- | node_modules/deep-equal/lib/keys.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/node_modules/deep-equal/lib/keys.js b/node_modules/deep-equal/lib/keys.js new file mode 100644 index 0000000..13af263 --- /dev/null +++ b/node_modules/deep-equal/lib/keys.js @@ -0,0 +1,9 @@ +exports = module.exports = typeof Object.keys === 'function' + ? Object.keys : shim; + +exports.shim = shim; +function shim (obj) { + var keys = []; + for (var key in obj) keys.push(key); + return keys; +} |