10 lines
418 B
JavaScript
10 lines
418 B
JavaScript
var internalObjectKeys = require('../internals/object-keys-internal');
|
|
var enumBugKeys = require('../internals/enum-bug-keys');
|
|
|
|
var hiddenKeys = enumBugKeys.concat('length', 'prototype');
|
|
|
|
// `Object.getOwnPropertyNames` method
|
|
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
|
|
exports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
return internalObjectKeys(O, hiddenKeys);
|
|
};
|