📜  for in ts - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:26.343000             🧑  作者: Mango

代码示例1
for (let entry of someArray) {
  console.log(entry); // 1, "string", false
}

var numbers = [1, 2, 3];
for (var _i = 0; _i < numbers.length; _i++) {
  var num = numbers[_i];
  console.log(num);
}