Object.entries () untuk JSON

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


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

Javasper