_own-keys.js 409 B

1234567891011
  1. // all object keys, includes non-enumerable and symbols
  2. var gOPN = require('./_object-gopn');
  3. var gOPS = require('./_object-gops');
  4. var anObject = require('./_an-object');
  5. var Reflect = require('./_global').Reflect;
  6. module.exports = Reflect && Reflect.ownKeys || function ownKeys(it) {
  7. var keys = gOPN.f(anObject(it));
  8. var getSymbols = gOPS.f;
  9. return getSymbols ? keys.concat(getSymbols(it)) : keys;
  10. };