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
/
single-param-does-not-need-parens.js
5 lines
(3 loc)
•
79 B
JavaScript
View Raw
1
2
3
4
5
/* jshint esnext:true */
var
identity
=
x => x;
assert
.equal(identity(
1
),
1
);