Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9346553
es.object.from-entries.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
468 B
Subscribers
None
es.object.from-entries.js
View Options
var
$
=
require
(
'../internals/export'
);
var
iterate
=
require
(
'../internals/iterate'
);
var
createProperty
=
require
(
'../internals/create-property'
);
// `Object.fromEntries` method
// https://github.com/tc39/proposal-object-from-entries
$
({
target
:
'Object'
,
stat
:
true
},
{
fromEntries
:
function
fromEntries
(
iterable
)
{
var
obj
=
{};
iterate
(
iterable
,
function
(
k
,
v
)
{
createProperty
(
obj
,
k
,
v
);
},
{
AS_ENTRIES
:
true
});
return
obj
;
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 4, 4:10 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3368110
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment