0
Q:

foreach typescript

let num = [7, 8, 9];
num.forEach(function (value) {
  console.log(value);
}); 
5
example() {
    for (let item of this.items) {
        if (true) {
            return;
        }
    }
    // Do stuff in case forEach has not returned
}
2
 for (let item of this.items) {
        if (true) {
            return;
        }
    }
1

New to Communities?

Join the community