0
vzqzac
9y

{
regular: function () { return this }, // ok
arrow: () => { return this } // you mean undefined?
}

Comments
  • 0
    According to MDN
    "An arrow function expression has a shorter syntax compared to function expressions and DOES NOT BIND ITS OWN THIS, ARGUMENTS, SUPER, OR NEW.TARGET ..." I troubled with it while coding an mvc app and found out the use of them as kind of specific scenarios @dennie170
Add Comment