There is any way to access using index + string to this array?, knowing that there is n options, using for doing something like this?
var myArray = {input-name: 'xxx', option1: 20, option2: 50, option3: 40...option10:100};
for (var i=1;i<=10;i++)
{
console.log(myArray.option+i);
}