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';
|
---|
2 | var $ = require('../internals/export');
|
---|
3 | var iterate = require('../internals/iterate');
|
---|
4 | var 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.