'convert an Object to an Array in javascript

My object is like this (tried with .map, .push, object.assign, object.values - nothing helping).

enter image description here

And I need to change that object like below how can I do that? enter image description here



Solution 1:[1]

data.item3 = Object.keys(data.item3).map(key => ({...data.item3[key]}))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Tolunay Ă–zdemir