// Use `Object.entries(obj)` const myObject = {a: 1, b: 2, c: 3}; console.log( Object.entries(myObject) );