cannot access own properties in javascript constructor
I have a base class and another that extends it, how can I access fields in the constructor? class BaseModel { constructor() { console.log('no fields :(') console.log(this.fields) this.fields.map((field) => { field.label = field.label || field.name; }) } } class UserModel…