keys.js 202 B

12345678910
  1. exports = module.exports = typeof Object.keys === 'function'
  2. ? Object.keys : shim;
  3. exports.shim = shim;
  4. function shim (obj) {
  5. var keys = [];
  6. for (var key in obj) keys.push(key);
  7. return keys;
  8. }