I am having a dilemma as I need to choose the best performing option.
What I have now is a simple array like:
var array = [
'/index1.html',
'/index2.html',
'/index3.html'
];
this array would contain around 60 options only but as I need to separate by language I am thinking of other options such as object literal or JSON format so it would contain all languages and around 1000 options.
var obj = {
'en' : {
'title' : 'bla',
'url':'bla bla bla'
},
'de' : {
'title' : 'bla',
'url':'bla bla bla'
},
};
The questions is what do you think would best perform for this? Thank you.