re: Implementing our own Array.map() method in javascript VIEW POST


I have a question, what if you use an arrow operator. It uses global window as this then, why so?


That's due to the property of the arrow function where it binds the Lexical this as its own this. That is the reason why we not use arrow function here

Code of Conduct Report abuse