Direction






Generally known benefit of an arrow function is the reduced syntax it offers. However, there is one more benefit of an arrow function, its use of the lexical scoping.

With lexical scoping the 'this' keyword will have the value based on where the method is declared, rather than where it is called from. 

I find this Web Dev Simplified blog quite concise and good for understanding arrow functions in general, and the lexical scoping in particular.









Creative Commons License

Comments