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
Post a Comment