There is one thing to watch out when using arrow functions. This is the fact that arrow functions do not create their own this, scope around themselves. Instead, they use the scope in which they are created, as their own. Consider the following example:
– See more at: Classmite
Advertisements