Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

object-get-own-property-names.js 494B

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