Arrow functions have no context! Auto-binding does not exist

I see this misconception a lot. Even with seasoned Stack Overflow users! Arrow functions intrinsically have no context. Read more about it here. Very first sentence.

An arrow function expression has a shorter syntax than a function expression and does not have its own this, arguments, super, or new.target.

Comments

Popular posts from this blog

Contrasting var and ES6s new declarations: let and const

Modularity vs. Abstraction. Which is More Important?

Unit testable components pt.3: Testing components