I have a simple javascript map which does not contain identifiers for the fields. I can iterate through the map but can not obtain the values without the field identifiers.
var processStatusTypes = {
1:'ClaimProcess Status 1',
2:'ClaimProcess Status 2',
3:'ClaimProcess Status 3',
4:'ClaimProcess Status 4',
5:'ClaimProcess Status 5',
6:'ClaimProcess Status 6',
7:'ClaimProcess Status 7'
};
for (var index in processStatusTypes) {
console.log(processStatusTypes[index][0]);
console.log(processStatusTypes[index][1]);
}
I know this should be simple but i can not find a solution. Any help would be appreciated. Thanks
processStatusTypes[index]
, It a simple object with primitive values. What exactly you need?index
is key in this scenario. Just testconsole.log(index, processStatusTypes[index]);