SyntaxFix
Write A Post
Hire A Developer
Questions
When using Object.keys, the following works:
Object.keys
Object.keys(this) .forEach(key => { console.log(this[key as keyof MyClass]); });