I am Proxing an object in a custom class and I'd like to get access to the methods and properties of that same class within my Proxy Object. Is it possible?
I thought there is a way to bind the context but it didn't work for me neight with apply, call nor bind.
Any suggestions would be appreciated!
class MyClass {
  constructor() {
    this.state = new Proxy(this.initialState, {
      set(target, prop, value) {
        // some logic goes here              
      }
    })
  }
  methodIneedToReach() {}
}
I need it to structure the code and prevent the mess.