📜  遍历对象打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:26.053000             🧑  作者: 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
      }
}