Object.keys(this) .forEach(key => { console.log(this[key as keyof MyClass]); });
for (let key in object){ console.log(object[key as keyof MyClass]); }