Foreach Loop на массиве TypeScript

let num = [7, 8, 9];
num.forEach(function (value) {
  console.log(value);
});
Grieving Goosander