Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
towelguy
on June 18, 2015
|
parent
|
context
|
favorite
| on:
Implement arrow functions in v8
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: