I have these objects that are stored in array :
var current = [{1:{X:"",Y:""},2:{X:"",Y:""},3:{X:"",Y:""}},
{1:{X:"",Y:""},2:{X:"",Y:""},3:{X:"",Y:""}},
{1:{X:"",Y:""},2:{X:"",Y:""},3:{X:"",Y:""}}
];
What I want is to store them dynamically and access them dynamically after passing the objects value in a function.
function getXAxis(num){
//any
}
function getYAxis(num){
//any
}
trial1a.X = getXAxis(current[0][1].X);
trial1a.Y = getYAxis(current[0][1].Y);
trial2a.X = getXAxis(current[0][2].X);
trial2a.Y = getYAxis(current[0][2].Y);
trial3a.X = getXAxis(current[0][3].X);
trial3a.Y = getYAxis(current[0][3].Y);
trial1b.X = getXAxis(current[1][1].X);
trial1b.Y = getYAxis(current[1][1].Y);
What is the best way to access current
values and store them dynamically as well