1 | ;
|
2 | var internalObjectKeys = require('../internals/object-keys-internal');
|
3 | var enumBugKeys = require('../internals/enum-bug-keys');
|
4 |
|
5 | var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
6 |
|
7 | // `Object.getOwnPropertyNames` method
|
8 | // https://tc39.es/ecma262/#sec-object.getownpropertynames
|
9 | // eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
10 | exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
11 | return internalObjectKeys(O, hiddenKeys);
|
12 | };
|