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.
13 lines
387 B
13 lines
387 B
2 weeks ago
|
'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');
|
||
|
}
|
||
|
});
|