0
vzqzac
8y

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

Comments
  • 0
    So I just discovered this a few hours ago..... Please someone, explain... I can't comprehend
  • 1
    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
  • 1
    @vzqzac Ah ok.. thanks for the info!
Add Comment