The inverse of entriesis method returns an object composed from key-value pairs.
entries
pairs
The key-value pairs.
Returns the new object.
5.10.0
fromEntries([['a', 1], ['b', 2]])// => { 'a': 1, 'b': 2 } Copy
fromEntries([['a', 1], ['b', 2]])// => { 'a': 1, 'b': 2 }
The inverse of
entries
is method returns an object composed from key-valuepairs
.