Arrow functions

suggest change

Arrow functions automatically bind to the ‘this’ lexical scope of the surrounding code.

performSomething(result => {
  this.someVariable = result
})

vs

performSomething(function(result) {
  this.someVariable = result
}.bind(this))

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents