SOURCE

var obj = {
  name:'jack',
  getName:function(){return this.name},
}
for (const atr of obj.entries()){
  console.log(atr);
}
console 命令行工具 X clear

                    
>
console