Good morning, could someone help me with changing Object like this
{
item1: "this is string field value",
item2: "FF FF A2 C4h"
}
And i need to get this format of array
[
{
id: item1, value: "this is string field value"
},
{
id: item2, value: "FF FF A2 C4"
}
]
I know how I could solve this, for example, using it Object.keys() or Object.values().
But I always get only one parameter out of two. And then the combination of these two results I am not able to put together. Therefore, I want to ask if anyone knows about a better / simpler solution. Or if someone could show me what I'm doing wrong and what is solution for this.
Thanks in advance