UNPKG

es6-arrow-function

Version:

Shorthand arrow functions compiled to ES5.

15 lines (11 loc) 252 B
/* jshint esnext:true */ var obj = { method: function() { return () => (this, () => this); }, method2: function() { return () => () => this; } }; assert.strictEqual(obj.method()()(), obj); assert.strictEqual(obj.method2()()(), obj);