📜  打字稿代码示例中字典的foreach

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

代码示例2
Object.keys(dict).forEach(key=> {
  console.log(`key:${key}`, `val:${dict[key]}`);
});