I have two objects:
obj1 = { 'id1': 1, 'name1': 'anyone1', 'birth1': 22, 'year1': 1993 };
obj2 = { 'id2': 1, 'name2': 'anyone', 'birth2': 22, 'year2': 1993 };
And I would like to create a Array like:
ARRAY = {
obj1 = {
'id1': 1, 'name1': 'anyone1', 'birth1': 22, 'year1': 1993
},
obj2 = {
'id2': 1, 'name2': 'anyone', 'birth2': 22, 'year2': 1993
}
}
I would like to call it like 'ARRAY.obj1.id1
'
How can I do this?