nodered_cfg/node_modules/core-js/modules/esnext.object.iterate-keys.js

13 lines
387 B
JavaScript
Raw Permalink Normal View History

2024-08-24 20:48:14 +02:00
'use strict';
// TODO: Remove from `core-js@4`
var $ = require('../internals/export');
var ObjectIterator = require('../internals/object-iterator');
// `Object.iterateKeys` method
// https://github.com/tc39/proposal-object-iteration
$({ target: 'Object', stat: true, forced: true }, {
iterateKeys: function iterateKeys(object) {
return new ObjectIterator(object, 'keys');
}
});