const arr = [['name', 'John'], ['age', 30]]; const obj = Object.fromEntries(arr); console.log(obj); // {name: "John", age: 30}