Is their any way to create mutidimensional arrays in Javascript with Non Numeric Idex?
like the structure
optionList[0]['id'] = "equals";
optionList[0]['name'] = "Equals";
optionList[1]['id'] = "not_equals_str";
optionList[1]['name'] = "Does Not Equal";
optionList[2]['id'] = "contains";
optionList[2]['name'] = "Contains";
Yes, at least some kind of object that will do what you want even if it’s not really a “multidimensional array”.
You create a mododimensionnal array.
And you populate it with simple javascript objects, which you can consider as some kind of maps for many purposes.
You can create it in one go :