📜  打字稿代码示例中的对象迭代

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

代码示例3
// 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
      }
}