Javascript – Create a new array from objects with random structure
I want to make a new array from a JSON. The problem is I don't know the structure of the JSON I will be getting. It could be anything. But I know the JSON's key which will contain all the…