Re:Replacing ‘that = this’ assignments in JavaScript with Ar...
by sailfast on Friday April 14, 2017 @03:28PM
(#14116576)
In sum:
"Since the...function was defined as an arrow function rather than the traditional anonymous function, and since it is defined within the lexical scope of another function X, the value of 'this' is set to the surrounding lexical scope of X [instead of the global]"
[ Parent
| on HN ]
There are no comments on this comment yet.