debian-mirror-gitlab/core-js/modules/es.object.entries.js
2019-09-25 13:30:05 +05:30

10 lines
289 B
JavaScript

var $ = require('../internals/export');
var $entries = require('../internals/object-to-array').entries;
// `Object.entries` method
// https://tc39.github.io/ecma262/#sec-object.entries
$({ target: 'Object', stat: true }, {
entries: function entries(O) {
return $entries(O);
}
});