Closed gaand closed 8 years ago
Overriding default this (global or window) in array methods. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEach
this
global
window
Note: arrow functions bind this lexically, so cannot make use of passing a thisArg to an array method.
added
Overriding default
this
(global
orwindow
) in array methods. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/forEachNote: arrow functions bind this lexically, so cannot make use of passing a thisArg to an array method.