const object1 = { a: 'somestring', b: 42 }; console.log(Object.entries(object1)); // expected output: // Array [Array ["a", "somestring"], Array ["b", 42]]