I have an object and I would like to convert it into an array
const object1 = {
a: { hide:true},
b:{}
};
I am currently using Object.entries to perform the conversion, however, I am struggling with understanding how it should be done.
Object.entries(object1)
Output:
[{a:{hide:true}},{b:{}}]