foreach in object typescript code example
Example 1: foreach typescript
for (let item of this.items) {
if (true) {
return;
}
}
Example 2: typescript foreach
let num = [7, 8, 9];
num.forEach(function (value) {
console.log(value);
});