UNPKG

494 BJavaScriptView Raw
1'use strict';
2var internalObjectKeys = require('../internals/object-keys-internal');
3var enumBugKeys = require('../internals/enum-bug-keys');
4
5var 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
10exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
11 return internalObjectKeys(O, hiddenKeys);
12};