Have an array with objects like this:
[{id: "58eeed338b115", name: "Bob", avatar: "" },
{id: "58eeed338b115", name: "Bob", avatar: "" }]
I need change order of properties to this:
[{avatar: "", name: "Bob",id: "58eeed338b115"},
{avatar: "", name: "Bob",id: "58eeed338b115"} ]
in real task I have about 20 obj, how to change order? use for in? I have no ideas how to do this. I want setup manualy order, params in obj can be about 10