source: imaps-frontend/node_modules/core-js/modules/es.object.from-entries.js@ 79a0317

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 477 bytes
Line 
1'use strict';
2var $ = require('../internals/export');
3var iterate = require('../internals/iterate');
4var createProperty = require('../internals/create-property');
5
6// `Object.fromEntries` method
7// https://tc39.es/ecma262/#sec-object.fromentries
8$({ target: 'Object', stat: true }, {
9 fromEntries: function fromEntries(iterable) {
10 var obj = {};
11 iterate(iterable, function (k, v) {
12 createProperty(obj, k, v);
13 }, { AS_ENTRIES: true });
14 return obj;
15 }
16});
Note: See TracBrowser for help on using the repository browser.