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.

esnext.object.iterate-keys.js 387B

123456789101112
  1. 'use strict';
  2. // TODO: Remove from `core-js@4`
  3. var $ = require('../internals/export');
  4. var ObjectIterator = require('../internals/object-iterator');
  5. // `Object.iterateKeys` method
  6. // https://github.com/tc39/proposal-object-iteration
  7. $({ target: 'Object', stat: true, forced: true }, {
  8. iterateKeys: function iterateKeys(object) {
  9. return new ObjectIterator(object, 'keys');
  10. }
  11. });