UNPKG
es6-arrow-function
Version:
latest (0.6.6)
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.1
0.5.0
0.4.0
0.3.1
0.3.0
0.2.0
0.1.1
0.1.0
0.0.1
Shorthand arrow functions compiled to ES5.
github.com/square/es6-arrow-function
es6-arrow-function
/
test
/
examples
/
only-lexical-this-not-dynamic-this.js
10 lines
(7 loc)
•
133 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/* jshint esnext:true */
var
obj = {
method
:
function
(
) {
return
() =>
this
; } }; assert.
strictEqual
(obj.
method
()(), obj);