For example say if have an object array obArr,this object consists of Id,Name

if I was to access the obArr[0].Id , this would give me back the Id value of thefirst object, but what would happen if I don't know what this object consists of as It could be dynamic is there anyway to dynamically call the Object 'attribute',

The way I'm looking for is to have another array,
var myArr =new Array("Id","Name");

and call obArr[0].myArr[0] , instead of obArr[0].Id

Is there a way to do this with Javascript?,