var obj = { name:'jack', getName:function(){return this.name}, } for (const atr of obj.entries()){ console.log(atr); }