typescript foreach key value pair with types code example
Example 1: key value pairs typescript
var item: {[key: string]: number}
Example 2: typescript for loop key value pai
for (let key in myDictionary) {
let value = myDictionary[key];
// Use `key` and `value`
}