Merge branch 'gh-pages' of github.com:ruanyf/es6tutorial into gh-pages

This commit is contained in:
ruanyf
2015-12-03 15:24:17 +08:00
+3
View File
@@ -263,6 +263,9 @@ const nodes = Array.from(foo);
[1, 2, 3].map((x) => {
return x * x;
});
// best
[1, 2, 3].map(x => x * x);
```
箭头函数取代`Function.prototype.bind`,不应再用self/\_this/that绑定 this。