i have a object set like below.
var obj = {
child2: {
childProp1: 'childProp1Value',
},
child1: {
childProp1: 'childProp1Value',
},
child3: {
childProp1: 'childProp1Value',
},
}
console.log(obj);
I want to get object in same order as child2,child1,child3. But when I console object obj the order changes to child1,child2,child3. Here I want obj as the same without changing the order. How I can acheive it?