ES6 arrow functions not working on the prototype?
Arrow functions provide a lexical this. It uses the this that is available at the time the function is evaluated. It is logically equivalent to (the following isn’t valid code since you can’t have a variable named this): (function(this){ // code that uses “this” })(this) In your 1st example the arrow function is within the … Read more