{ setX: function(x) { this._x = x; } } // works as expected
{ setX: (x) => { this._x = x; } } // haha nope, corrupts `window` probably
Conversation
Replying to
1
Replying to
Try going to the ES6 compat table kangax.github.io/compat-table/e and unfolding/reading the test code for unfamiliar features.
1
1
Replying to
I do that from time to time but I appear to have missed the object literal extensions. Neat.


