Skip to content

Instantly share code, notes, and snippets.

class User {
name: string = 'Marcos';
changePassword(newPassword: string) { }
}
const user = new User();
for (const key in user) {
console.log(key);
}
// name
// changePassword
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment