typescript foreach type key value code example
Example 1: typescript foreach
let num = [7, 8, 9];
num.forEach(function (value) {
console.log(value);
});
Example 2: typescript for loop key value pai
for (let key in myDictionary) {
let value = myDictionary[key];
// Use `key` and `value`
}