I want to list all possible class properties. Something like this:
class Rectangle {
height;
width;
constructor(width) {
this.width = width;
}
}
getClassProperties(Rectangle) // ['height', 'width']
I want to be able to make this calculation give the class, not an instance of it. using hasOwnProperty \ getOwnPropertyName + getPrototypeOf will only work on an instance.