I dont know, how to loop an object and push his key and value into a key-value object. now I give you an example.
input object looks like this:
{a: 1, b:2, c:3}
and the output object array should be look like this:
[{key: a, value: 1}{key: b, value 2} {key: c, value: 3}]
any solutions?
Object.entries