Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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);




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: