Answers for "javascript convert Object.entries back to object"

1

javascript convert Object.entries back to object

const arr = [ ['0', 'a'], ['1', 'b'], ['2', 'c'] ];
const obj = Object.fromEntries(arr);
console.log(obj); // { 0: "a", 1: "b", 2: "c" }
Posted by: Guest on May-04-2020

Code answers related to "javascript convert Object.entries back to object"

Code answers related to "Javascript"

Browse Popular Code Answers by Language