Object.entries () para un JSON

const object1 = {first:"a", second:"b"};
console.log(Object.entries(object1));


/*(Array [ "first", "a" ], Array["second", "b])*/
 

Javasper