JavaScript frameworks often call callbacks using apply().
TypeScript's arrow notation, however, doesn't seem to allow me to access the 'this' pointer.
How's it done?
If it isn't, is there a place to down-vote the current 'this' handling on Lambdas?
TypeScript's handling of
this
in arrow functions is in line with ES6 (Read: Arrow Functions). Due to that specification, it would be inconsistent for it to act any other way.If you want to access
this
of the current function, then you can use a regular function.For example, change:
To: