Hacker News new | ask | show | jobs
by towelguy 4012 days ago
Yeah like the others said it binds this to the scope where it was defined. So something like this works as one would expect:

    setTimeout(() => this.someMethod(), 1000);