How to Iterate through Dictionary items in JavaScript/Angular

How to Iterate through Dictionary items in JavaScript/Angular

Very simple example on how to iterate through your list of dictionary items:

var dictionary = {};
dictionary['one'] = {item: 1};
dictionary['two'] = {item: 2};

for (var key in dictionary) {
  console.log("key " + dictionary[key].item); // 1, 2
}

good luck!