summaryrefslogtreecommitdiff
path: root/node_modules/deep-equal/lib/keys.js
blob: 13af263f9c4c7fe9479da67b599f005b34f0db2d (plain)
1
2
3
4
5
6
7
8
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;
}