📜  在 ts 中循环对象属性 - TypeScript 代码示例

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

代码示例2
// This solution is for when you want to use 
// `break`, `return` which forEach doesn't support
for (const key in tempData) {
      if (tempData.hasOwnProperty(key)) {
        // your logic here
      }
}