I have a property defined but when I try to access it from inside a setInterval anonymous function, it is not being recognized.
  this.game.seconds = 6;
  useTimer() {
    let timer = setInterval(
      function () {
        this.game.seconds--;//here the keyword this is not being recognized
      }, 1000
    );
  }
 
     
    